#Packager: Dimitris Tzemos pkgname=lsb-release-mate pkgver=1.4 pkgrel=4dj arch=noarch source=("http://downloads.sourceforge.net/lsb/lsb-release-$pkgver.tar.gz" "lsb_release-update") 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/lsb-release-$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" install -Dm 755 $SRC/lsb_release-update "$PKG/usr/bin/lsb_release-update" echo lsb-release > $startdir/$pkgname-$pkgver-$arch-$pkgrel.con chown -R root:root $startdir/pkg } # Doinst doinst() { echo "LSB_VERSION=1.4" > "$PKG/etc/lsb-release" echo "DISTRIB_ID=slackel" >> "$PKG/etc/lsb-release" echo "DISTRIB_RELEASE=7.3" >> "$PKG/etc/lsb-release" echo "DISTRIB_CODENAME=MATE" >> "$PKG/etc/lsb-release" #echo "DISTRIB_DESCRIPTION=\"Slackel Linux `uname -r`\"" >> "$PKG/etc/lsb-release" echo "DISTRIB_DESCRIPTION=\"Slackel Linux MATE\"" >> "$PKG/etc/lsb-release" sh /usr/bin/lsb_release-update }