#Packager: Dimitris Tzemos pkgname=lsb-release pkgver=1.4 pkgrel=1dj arch=noarch source=(http://downloads.sourceforge.net/lsb/$pkgname-$pkgver.tar.gz) docs=("ChangeLog" "INSTALL" "README") url="http://www.linuxbase.org/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "lsb_release (LSB version query program)" "The program queries the installed state of the distribution to display" "certain properties such as the version of the LSB against which the" "distribution claims compliance as well. It can also attempt to display" "the name and release of the distribution along with an identifier of" "who produces the distribution." ) build() { cd $startdir/src/$pkgname-$pkgver make -j $numjobs || return 1 install -dm755 "$PKG/etc" gunzip lsb_release.1.gz install -Dm 644 lsb_release.1 "$PKG/usr/share/man/man1/lsb_release.1" install -Dm 755 lsb_release "$PKG/usr/bin/lsb_release" chown -R root:root $startdir/pkg } # Doinst doinst() { echo "LSB_VERSION=1.4" > "$PKG/etc/lsb-release" echo "DISTRIB_ID=salix" >> "$PKG/etc/lsb-release" echo "DISTRIB_RELEASE="$(sed -e 's/^Slackware //' /etc/slackware-version)"" >> "$PKG/etc/lsb-release" echo "DISTRIB_DESCRIPTION=\"Salix Linux `uname -r`\"" >> "$PKG/etc/lsb-release" }