wok-current view pciutils/receipt @ rev 25124

updated apache-mod-perl (2.0.8 -> 2.0.11)
author Hans-G?nter Theisgen
date Tue Jun 28 16:23:55 2022 +0100 (2022-06-28)
parents 241fb98cab1c
children e53dd413c6de
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.8.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Linux PCI Utilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mj.ucw.cz/sw/pciutils/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://mj.ucw.cz/download/linux/pci/$TARBALL"
14 DEPENDS="gcc83-lib-base glibc-base pciids zlib"
15 BUILD_DEPENDS="gcc83"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|CC=cc|CC=gcc-83|' Makefile
29 make all \
30 OPT="${CFLAGS} -fPIC -DPIC" \
31 SHARED=no \
32 PREFIX=/usr \
33 SHAREDIR=/usr/share/misc \
34 MANDIR=/usr/share/man &&
35 cp -a lib/libpci.a $WOK/$PACKAGE/source &&
36 make clean &&
37 make all \
38 OPT="${CFLAGS}" \
39 ZLIB=yes \
40 SHARED=yes \
41 PREFIX=/usr \
42 SHAREDIR=/usr/share/misc \
43 MANDIR=/usr/share/man &&
44 make install install-lib \
45 SHARED=yes \
46 PREFIX=/usr \
47 SHAREDIR=/usr/share/misc \
48 MANDIR=/usr/share/man \
49 DESTDIR="$DESTDIR" &&
50 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cook_copy_files lspci
57 cook_copy_files *.so*
58 cp -a $install/usr/sbin/setpci $fs/usr/bin
59 }
61 # Overlap busybox
62 pre_install()
63 {
64 rm -f "$1/usr/bin/lspci"
65 }
67 post_remove()
68 {
69 ln -s /bin/busybox "$1/usr/bin/lspci"
70 }