wok annotate pciutils/receipt @ rev 24837
updated libtdb and libtdb-dev (1.4.3 -> 1.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 25 07:38:22 2022 +0100 (2022-03-25) |
parents | cb9656914245 |
children | 2572b2076c7c |
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 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 22 } |
pascal@24453 | 23 |
pankso@26 | 24 # Rules to configure and make the package. |
pankso@26 | 25 compile_rules() |
pankso@26 | 26 { |
Hans-G?nter@23280 | 27 make all \ |
Hans-G?nter@23280 | 28 OPT="${CFLAGS} -fPIC -DPIC" \ |
Hans-G?nter@23280 | 29 SHARED=no PREFIX=/usr \ |
Hans-G?nter@23280 | 30 SHAREDIR=/usr/share/misc \ |
Hans-G?nter@23280 | 31 MANDIR=/usr/share/man && |
Hans-G?nter@23280 | 32 cp -a lib/libpci.a $WOK/$PACKAGE/source && |
Hans-G?nter@23280 | 33 make clean && |
Hans-G?nter@23280 | 34 make all \ |
Hans-G?nter@23280 | 35 OPT="${CFLAGS}" \ |
Hans-G?nter@23280 | 36 ZLIB=yes \ |
Hans-G?nter@23280 | 37 SHARED=yes \ |
Hans-G?nter@23280 | 38 PREFIX=/usr \ |
Hans-G?nter@23280 | 39 SHAREDIR=/usr/share/misc \ |
Hans-G?nter@23280 | 40 MANDIR=/usr/share/man && |
Hans-G?nter@23280 | 41 make install install-lib \ |
Hans-G?nter@23280 | 42 SHARED=yes \ |
Hans-G?nter@23280 | 43 PREFIX=/usr \ |
Hans-G?nter@23280 | 44 SHAREDIR=/usr/share/misc \ |
Hans-G?nter@23280 | 45 MANDIR=/usr/share/man \ |
Hans-G?nter@23280 | 46 DESTDIR="$DESTDIR" && |
Hans-G?nter@23280 | 47 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib |
pankso@26 | 48 } |
pankso@26 | 49 |
pankso@26 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 51 genpkg_rules() |
pankso@26 | 52 { |
Hans-G?nter@21666 | 53 mkdir -p $fs/usr/bin |
Hans-G?nter@21666 | 54 mkdir -p $fs/usr/lib |
Hans-G?nter@21666 | 55 |
Hans-G?nter@21666 | 56 cp -a $install/usr/sbin/lspci $fs/usr/bin |
Hans-G?nter@21666 | 57 cp -a $install/usr/sbin/setpci $fs/usr/bin |
Hans-G?nter@21666 | 58 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@26 | 59 } |
pascal@8878 | 60 |
pascal@8878 | 61 # Overlap busybox |
pascal@8878 | 62 pre_install() |
pascal@8878 | 63 { |
pascal@18730 | 64 rm -f "$1/usr/bin/lspci" |
pascal@8878 | 65 } |
pascal@8878 | 66 |
pascal@8878 | 67 post_remove() |
pascal@8878 | 68 { |
pascal@18730 | 69 ln -s /bin/busybox "$1/usr/bin/lspci" |
pascal@8878 | 70 } |