#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) pkgname=lshw pkgver=B.02.13 zenver=52 pkgrel=1 arch=i486 source=("http://www.ezix.org/software/files/lshw-B.02.13.tar.gz" "http://users.zenwalk.org/user-accounts/gapan/lshw/icons.tar.gz" "http://users.zenwalk.org/user-accounts/gapan/lshw/lshw.desktop") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers" "IODC.txt" "proc_usb_info.txt") url=http://ezix.org/project/wiki/HardwareLiSter options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "lshw - Hardware Lister" "lshw is a small tool to provide detailed information on the" "hardware configuration of the machine. It can report exact" "memory configuration, firmware version, mainboard configuration," "CPU version and speed, cache configuration, bus speed, etc." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i "s/-g -Wall/-g -Wall -O2 -march=i486 -mtune=i686/" src/Makefile sed -i "s/-g -Wall/-g -Wall -O2 -march=i486 -mtune=i686/" src/core/Makefile sed -i "s/-g -Wall/-g -Wall -O2 -march=i486 -mtune=i686/" src/gui/Makefile make MANDIR=/usr/man || exit 1 make MANDIR=/usr/man gui || exit 1 make DESTDIR=$startdir/pkg MANDIR=/usr/man install || exit 1 make DESTDIR=$startdir/pkg MANDIR=/usr/man install-gui || exit 1 # Copy icons to the right place ICONSIZES="64 48 32 24 22 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps mv $startdir/src/$pkgname.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps }