wok-6.x annotate pciutils/receipt @ rev 23652

updated smtube (19.6.0 -> 20.1.0)
author Hans-G?nter Theisgen
date Mon Apr 20 15:28:06 2020 +0100 (2020-04-20)
parents e8fd3684e239
children 241fb98cab1c
rev   line source
pankso@26 1 # SliTaz package receipt.
pankso@26 2
pankso@26 3 PACKAGE="pciutils"
Hans-G?nter@23280 4 VERSION="3.6.4"
pankso@202 5 CATEGORY="system-tools"
Hans-G?nter@21666 6 SHORT_DESC="Linux PCI Utilities."
pankso@26 7 MAINTAINER="pankso@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
Hans-G?nter@21666 9 WEB_SITE="https://mj.ucw.cz/sw/pciutils/"
Hans-G?nter@21666 10
pankso@26 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23280 12 WGET_URL="https://mj.ucw.cz/download/linux/pci/$TARBALL"
pankso@26 13
Hans-G?nter@23280 14 DEPENDS="glibc-base pciids zlib"
Hans-G?nter@23280 15 BUILD_DEPENDS=""
slaxemulator@11043 16
pankso@26 17 # Rules to configure and make the package.
pankso@26 18 compile_rules()
pankso@26 19 {
Hans-G?nter@23280 20 make all \
Hans-G?nter@23280 21 OPT="${CFLAGS} -fPIC -DPIC" \
Hans-G?nter@23280 22 SHARED=no PREFIX=/usr \
Hans-G?nter@23280 23 SHAREDIR=/usr/share/misc \
Hans-G?nter@23280 24 MANDIR=/usr/share/man &&
Hans-G?nter@23280 25 cp -a lib/libpci.a $WOK/$PACKAGE/source &&
Hans-G?nter@23280 26 make clean &&
Hans-G?nter@23280 27 make all \
Hans-G?nter@23280 28 OPT="${CFLAGS}" \
Hans-G?nter@23280 29 ZLIB=yes \
Hans-G?nter@23280 30 SHARED=yes \
Hans-G?nter@23280 31 PREFIX=/usr \
Hans-G?nter@23280 32 SHAREDIR=/usr/share/misc \
Hans-G?nter@23280 33 MANDIR=/usr/share/man &&
Hans-G?nter@23280 34 make install install-lib \
Hans-G?nter@23280 35 SHARED=yes \
Hans-G?nter@23280 36 PREFIX=/usr \
Hans-G?nter@23280 37 SHAREDIR=/usr/share/misc \
Hans-G?nter@23280 38 MANDIR=/usr/share/man \
Hans-G?nter@23280 39 DESTDIR="$DESTDIR" &&
Hans-G?nter@23280 40 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
pankso@26 41 }
pankso@26 42
pankso@26 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@26 44 genpkg_rules()
pankso@26 45 {
Hans-G?nter@21666 46 mkdir -p $fs/usr/bin
Hans-G?nter@21666 47 mkdir -p $fs/usr/lib
Hans-G?nter@21666 48
Hans-G?nter@21666 49 cp -a $install/usr/sbin/lspci $fs/usr/bin
Hans-G?nter@21666 50 cp -a $install/usr/sbin/setpci $fs/usr/bin
Hans-G?nter@21666 51 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@26 52 }
pascal@8878 53
pascal@8878 54 # Overlap busybox
pascal@8878 55 pre_install()
pascal@8878 56 {
pascal@18730 57 rm -f "$1/usr/bin/lspci"
pascal@8878 58 }
pascal@8878 59
pascal@8878 60 post_remove()
pascal@8878 61 {
pascal@18730 62 ln -s /bin/busybox "$1/usr/bin/lspci"
pascal@8878 63 }