#Packager: Dimitris Tzemos pkgname=lsb-release pkgver=2.0 pkgrel=2dj arch=noarch source=("lsb-release-$pkgver.tar.gz" "os-release" "lsb_release-update") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url="http://www.linuxbase.org/" options=('noautodotnew' 'nosrcpack') doinst() { mv etc/os-release.new etc/os-release echo "LSB_VERSION=2.0" > "$PKG/etc/lsb-release" echo "DISTRIB_ID=slackel" >> "$PKG/etc/lsb-release" echo "DISTRIB_RELEASE=8.0" >> "$PKG/etc/lsb-release" echo "DISTRIB_CODENAME=Openbox" >> "$PKG/etc/lsb-release" #echo "DISTRIB_DESCRIPTION=\"Slackel Linux `uname -r`\"" >> "$PKG/etc/lsb-release" echo "DISTRIB_DESCRIPTION=\"Slackel Linux Openbox\"" >> "$PKG/etc/lsb-release" sh /usr/bin/lsb_release-update } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "lsb-release (LSB version query program)" "This program forms part of the required functionality of the LSB" "(Linux Standard Base) specification. lsb-release 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/src 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" # we're going to override the os-release file that comes from slackware # inside the aaa_base package. But we don't want the file to be removed # if the lsb-release package is removed. cp $startdir/src/os-release $startdir/pkg/etc/os-release.new echo lsb-release-mate > $startdir/$pkgname-$pkgver-$arch-$pkgrel.con chown -R root:root $startdir/pkg }