wok view isapnptools/receipt @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
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 }