wok-6.x annotate 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 |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="pciutils" |
Hans-G?nter@21666 | 4 VERSION="3.6.2" |
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" |
pankso@26 | 12 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL" |
pankso@26 | 13 |
slaxemulator@11043 | 14 DEPENDS="glibc-base zlib pciids" |
slaxemulator@11043 | 15 BUILD_DEPENDS="wget" |
slaxemulator@11043 | 16 |
pankso@26 | 17 # Rules to configure and make the package. |
pankso@26 | 18 compile_rules() |
pankso@26 | 19 { |
slaxemulator@12765 | 20 make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all |
slaxemulator@12765 | 21 cp -a lib/libpci.a $WOK/$PACKAGE/source |
slaxemulator@12765 | 22 make clean |
samuel_trassare@13547 | 23 make OPT="${CFLAGS}" ZLIB=yes SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all |
slaxemulator@12765 | 24 make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man DESTDIR="$DESTDIR" install install-lib |
slaxemulator@12765 | 25 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib |
pankso@26 | 26 } |
pankso@26 | 27 |
pankso@26 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 29 genpkg_rules() |
pankso@26 | 30 { |
Hans-G?nter@21666 | 31 mkdir -p $fs/usr/bin |
Hans-G?nter@21666 | 32 mkdir -p $fs/usr/lib |
Hans-G?nter@21666 | 33 |
Hans-G?nter@21666 | 34 cp -a $install/usr/sbin/lspci $fs/usr/bin |
Hans-G?nter@21666 | 35 cp -a $install/usr/sbin/setpci $fs/usr/bin |
Hans-G?nter@21666 | 36 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@26 | 37 } |
pascal@8878 | 38 |
pascal@8878 | 39 # Overlap busybox |
pascal@8878 | 40 pre_install() |
pascal@8878 | 41 { |
pascal@18730 | 42 rm -f "$1/usr/bin/lspci" |
pascal@8878 | 43 } |
pascal@8878 | 44 |
pascal@8878 | 45 post_remove() |
pascal@8878 | 46 { |
pascal@18730 | 47 ln -s /bin/busybox "$1/usr/bin/lspci" |
pascal@8878 | 48 } |