# SliTaz package receipt. PACKAGE="pciutils" VERSION="3.8.0" CATEGORY="system-tools" SHORT_DESC="Linux PCI Utilities." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://mj.ucw.cz/sw/pciutils/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://mj.ucw.cz/download/linux/pci/$TARBALL" DEPENDS="gcc-lib-base glibc-base pciids zlib" BUILD_DEPENDS="gcc" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { #sed -i 's|CC=cc|CC=gcc-83|' Makefile make all \ OPT="${CFLAGS} -fPIC -DPIC" \ SHARED=no \ PREFIX=/usr \ SHAREDIR=/usr/share/misc \ MANDIR=/usr/share/man && cp -a lib/libpci.a $WOK/$PACKAGE/source && make clean && make all \ OPT="${CFLAGS}" \ ZLIB=yes \ SHARED=yes \ PREFIX=/usr \ SHAREDIR=/usr/share/misc \ MANDIR=/usr/share/man && make install install-lib \ SHARED=yes \ PREFIX=/usr \ SHAREDIR=/usr/share/misc \ MANDIR=/usr/share/man \ DESTDIR="$DESTDIR" && cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files lspci cook_copy_files *.so* cp -a $install/usr/sbin/setpci $fs/usr/bin } # Overlap busybox pre_install() { rm -f "$1/usr/bin/lspci" } post_remove() { ln -s /bin/busybox "$1/usr/bin/lspci" }