wok-current view isapnptools/receipt @ rev 21582

Use python-setuptools as bdeps (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 19 19:45:04 2019 +0200 (2019-05-19)
parents 8b8fae260ab7
children 3e2a0347b2f1
line source
1 # SliTaz package receipt.
3 PACKAGE="isapnptools"
4 VERSION="1.27"
5 CATEGORY="system-tools"
6 SHORT_DESC="ISA Plug-And-Play configuration."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://web.archive.org/web/20140210040320/http://www.roestock.demon.co.uk/isapnptools/"
11 WGET_URL="ftp://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
17 sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
18 ./configure --prefix=/usr --bindir=/bin \
19 --libexecdir=/usr/bin --mandir=/usr/share/man \
20 $CONFIGURE_ARGS &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
29 mkdir -p $fs/sbin
30 cp -a $install/usr/sbin/pnpdump $fs/sbin
31 ln $fs/sbin/pnpdump $fs/sbin/isapnp
32 }