wok-6.x view pciutils/receipt @ rev 21666
updated pciutils and pciutils-dev (3.2.1 -> 3.6.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 01 14:00:45 2019 +0100 (2019-06-01) |
parents | 9e01bc6321ea |
children | cb9656914245 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Linux PCI Utilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mj.ucw.cz/sw/pciutils/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL"
14 DEPENDS="glibc-base zlib pciids"
15 BUILD_DEPENDS="wget"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all
21 cp -a lib/libpci.a $WOK/$PACKAGE/source
22 make clean
23 make OPT="${CFLAGS}" ZLIB=yes SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all
24 make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man DESTDIR="$DESTDIR" install install-lib
25 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin
32 mkdir -p $fs/usr/lib
34 cp -a $install/usr/sbin/lspci $fs/usr/bin
35 cp -a $install/usr/sbin/setpci $fs/usr/bin
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }
39 # Overlap busybox
40 pre_install()
41 {
42 rm -f "$1/usr/bin/lspci"
43 }
45 post_remove()
46 {
47 ln -s /bin/busybox "$1/usr/bin/lspci"
48 }