wok-6.x annotate pciutils/receipt @ rev 12765
Up: pciutils to 3.1.9.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 12 10:53:57 2012 +0000 (2012-05-12) |
parents | bab6e96ebac3 |
children | 67ed620748b8 |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="pciutils" |
slaxemulator@12765 | 4 VERSION="3.1.9" |
pankso@202 | 5 CATEGORY="system-tools" |
pankso@26 | 6 SHORT_DESC="Utilities to list PCI device by name (lspci)." |
pankso@26 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@26 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3754 | 9 WEB_SITE="http://mj.ucw.cz/pciutils.html" |
pankso@26 | 10 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL" |
pankso@26 | 11 |
slaxemulator@11043 | 12 DEPENDS="glibc-base zlib pciids" |
slaxemulator@11043 | 13 BUILD_DEPENDS="wget" |
slaxemulator@11043 | 14 |
pankso@26 | 15 # Rules to configure and make the package. |
pankso@26 | 16 compile_rules() |
pankso@26 | 17 { |
pankso@26 | 18 cd $src |
slaxemulator@12765 | 19 make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all |
slaxemulator@12765 | 20 cp -a lib/libpci.a $WOK/$PACKAGE/source |
slaxemulator@12765 | 21 make clean |
slaxemulator@12765 | 22 make OPT="${CFLAGS}" ZLIB=no SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all |
slaxemulator@12765 | 23 make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man DESTDIR="$DESTDIR" install install-lib |
slaxemulator@12765 | 24 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib |
pankso@26 | 25 } |
pankso@26 | 26 |
pankso@26 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 28 genpkg_rules() |
pankso@26 | 29 { |
slaxemulator@12765 | 30 mkdir -p $fs/usr/bin $fs/usr/lib |
slaxemulator@12765 | 31 cp -a $install/usr/sbin/lspci $fs/usr/bin |
slaxemulator@12765 | 32 cp -a $install/usr/sbin/setpci $fs/usr/bin |
slaxemulator@12765 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@26 | 34 } |
pascal@8878 | 35 |
pascal@8878 | 36 # Overlap busybox |
pascal@8878 | 37 pre_install() |
pascal@8878 | 38 { |
pascal@8878 | 39 rm -f $1/usr/bin/lspci |
pascal@8878 | 40 } |
pascal@8878 | 41 |
pascal@8878 | 42 post_remove() |
pascal@8878 | 43 { |
slaxemulator@11043 | 44 ln -s /bin/busybox $1/usr/bin/lspci |
pascal@8878 | 45 } |