forked from ports/contrib
26 lines
821 B
Plaintext
26 lines
821 B
Plaintext
|
# Description: LSB version query program
|
||
|
# URL: http://www.linuxbase.org
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Packager: Brian Madonna, Bmadonnaster at gmail dot com
|
||
|
# Depends on: bash
|
||
|
|
||
|
name=lsb-release
|
||
|
version=1.4
|
||
|
release=2
|
||
|
source=(https://downloads.sourceforge.net/lsb/$name-$version.tar.gz
|
||
|
lsb_release_description.patch)
|
||
|
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
patch -Np0 < "$SRC/lsb_release_description.patch"
|
||
|
make
|
||
|
install -dm755 "$PKG/etc"
|
||
|
echo "LSB_VERSION=$version" >> "$PKG/etc/lsb-release"
|
||
|
echo "DISTRIB_ID=CRUX" >> "$PKG/etc/lsb-release"
|
||
|
echo "DISTRIB_RELEASE=rolling" >> "$PKG/etc/lsb-release"
|
||
|
echo "DISTRIB_DESCRIPTION=CRUX" >> "$PKG/etc/lsb-release"
|
||
|
|
||
|
install -Dm 644 lsb_release.1.gz "$PKG/usr/share/man/man1/lsb_release.1.gz"
|
||
|
install -Dm 755 lsb_release "$PKG/usr/bin/lsb_release"
|
||
|
}
|