wok-6.x view pciutils/receipt @ rev 24332
updated audacious packages (3.10.1 -> 4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 17:51:18 2022 +0100 (2022-01-27) |
parents | e8fd3684e239 |
children | 241fb98cab1c |
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.6.4"
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="https://mj.ucw.cz/download/linux/pci/$TARBALL"
14 DEPENDS="glibc-base pciids zlib"
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 make all \
21 OPT="${CFLAGS} -fPIC -DPIC" \
22 SHARED=no PREFIX=/usr \
23 SHAREDIR=/usr/share/misc \
24 MANDIR=/usr/share/man &&
25 cp -a lib/libpci.a $WOK/$PACKAGE/source &&
26 make clean &&
27 make all \
28 OPT="${CFLAGS}" \
29 ZLIB=yes \
30 SHARED=yes \
31 PREFIX=/usr \
32 SHAREDIR=/usr/share/misc \
33 MANDIR=/usr/share/man &&
34 make install install-lib \
35 SHARED=yes \
36 PREFIX=/usr \
37 SHAREDIR=/usr/share/misc \
38 MANDIR=/usr/share/man \
39 DESTDIR="$DESTDIR" &&
40 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/bin
47 mkdir -p $fs/usr/lib
49 cp -a $install/usr/sbin/lspci $fs/usr/bin
50 cp -a $install/usr/sbin/setpci $fs/usr/bin
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }
54 # Overlap busybox
55 pre_install()
56 {
57 rm -f "$1/usr/bin/lspci"
58 }
60 post_remove()
61 {
62 ln -s /bin/busybox "$1/usr/bin/lspci"
63 }