wok view pciutils/receipt @ rev 21213
updated scim-pinyin (0.5.91 -> 0.5.92)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 09 17:04:52 2019 +0100 (2019-04-09) |
parents | c9e270dd464f |
children | e8fd3684e239 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Linux PCI Utilities"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mj.ucw.cz/pciutils.html"
11 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL"
13 DEPENDS="glibc-base zlib pciids"
14 BUILD_DEPENDS="wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all
20 cp -a lib/libpci.a $WOK/$PACKAGE/source
21 make clean
22 make OPT="${CFLAGS}" ZLIB=yes SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all
23 make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man DESTDIR="$DESTDIR" install install-lib
24 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/lib
31 cp -a $install/usr/sbin/lspci $fs/usr/bin
32 cp -a $install/usr/sbin/setpci $fs/usr/bin
33 cp -a $install/usr/lib/*.so* $fs/usr/lib
34 }
36 # Overlap busybox
37 pre_install()
38 {
39 rm -f "$1/usr/bin/lspci"
40 }
42 post_remove()
43 {
44 ln -s /bin/busybox "$1/usr/bin/lspci"
45 }