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

tuxmath: add -lt4k_common
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 02 10:41:05 2013 +0000 (2013-10-02)
parents e651a7475c2e
children b1569e676919
rev   line source
pankso@26 1 # SliTaz package receipt.
pankso@26 2
pankso@26 3 PACKAGE="pciutils"
mojo@13541 4 VERSION="3.1.10"
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"
pascal@15001 8 LICENSE="GPL2"
pankso@26 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3754 10 WEB_SITE="http://mj.ucw.cz/pciutils.html"
pankso@26 11 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL"
pankso@26 12
slaxemulator@11043 13 DEPENDS="glibc-base zlib pciids"
slaxemulator@11043 14 BUILD_DEPENDS="wget"
slaxemulator@11043 15
pankso@26 16 # Rules to configure and make the package.
pankso@26 17 compile_rules()
pankso@26 18 {
pankso@26 19 cd $src
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 {
slaxemulator@12765 31 mkdir -p $fs/usr/bin $fs/usr/lib
slaxemulator@12765 32 cp -a $install/usr/sbin/lspci $fs/usr/bin
slaxemulator@12765 33 cp -a $install/usr/sbin/setpci $fs/usr/bin
slaxemulator@12765 34 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@26 35 }
pascal@8878 36
pascal@8878 37 # Overlap busybox
pascal@8878 38 pre_install()
pascal@8878 39 {
pascal@8878 40 rm -f $1/usr/bin/lspci
pascal@8878 41 }
pascal@8878 42
pascal@8878 43 post_remove()
pascal@8878 44 {
slaxemulator@11043 45 ln -s /bin/busybox $1/usr/bin/lspci
pascal@8878 46 }