wok view pciutils/receipt @ rev 15246

icoutils: remove wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 23 13:27:46 2013 +0000 (2013-09-23)
parents e651a7475c2e
children b1569e676919
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.1.10"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities to list PCI device by name (lspci)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mj.ucw.cz/pciutils.html"
11 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL"
13 DEPENDS="glibc-base zlib pciids"
14 BUILD_DEPENDS="wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all
21 cp -a lib/libpci.a $WOK/$PACKAGE/source
22 make clean
23 make OPT="${CFLAGS}" ZLIB=yes SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all
24 make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man DESTDIR="$DESTDIR" install install-lib
25 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/usr/lib
32 cp -a $install/usr/sbin/lspci $fs/usr/bin
33 cp -a $install/usr/sbin/setpci $fs/usr/bin
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 }
37 # Overlap busybox
38 pre_install()
39 {
40 rm -f $1/usr/bin/lspci
41 }
43 post_remove()
44 {
45 ln -s /bin/busybox $1/usr/bin/lspci
46 }