wok-current view pciutils/receipt @ rev 9853
Up: weechat to 0.3.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 16 01:14:29 2011 +0000 (2011-05-16) |
parents | aa920dfe273d |
children | bab6e96ebac3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.1.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities to list PCI device by name (lspci)."
7 MAINTAINER="pankso@slitaz.org"
8 BUILD_DEPENDS="wget"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 DEPENDS="glibc-base zlib"
11 WEB_SITE="http://mj.ucw.cz/pciutils.html"
12 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./update-pciids.sh
19 make PREFIX=/usr IDSDIR=/usr/share/misc
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin $fs/usr/share/misc
26 if [ ! -f $src/pci.ids.gz ]; then
27 gzip $src/pci.ids
28 fi
29 cp -a $src/pci.ids.gz $fs/usr/share/misc
30 cp -a $src/lspci $fs/usr/bin
31 cp -a $src/setpci $fs/usr/bin
32 }
34 # Overlap busybox
35 pre_install()
36 {
37 rm -f $1/usr/bin/lspci
38 }
40 post_remove()
41 {
42 ln -s /bin/busybox /usr/bin/lspci
43 }