wok-tiny annotate isapnptools/receipt @ rev 142

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (15 months ago)
parents 371673f39e46
children
rev   line source
pascal@46 1 # SliTaz package receipt.
pascal@46 2
pascal@46 3 PACKAGE="isapnptools"
pascal@46 4 VERSION="1.27"
pascal@46 5 CATEGORY="system-tools"
pascal@46 6 SHORT_DESC="ISA Plug-And-Play configuration."
pascal@46 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@91 8 LICENSE="GPL2"
pascal@46 9 [ -n "$TARGET" ] || TARGET="i486"
pascal@46 10 BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
pascal@46 11 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@46 12 WEB_SITE="http://www.roestock.demon.co.uk/isapnptools/"
pascal@94 13 WGET_URL="http://mirror.slitaz.org/sources/packages/i/$TARBALL"
pascal@46 14
pascal@46 15 # Rules to configure and make the package.
pascal@46 16 compile_rules()
pascal@46 17 {
pascal@46 18 # Fix cross tools prefix...
pascal@46 19 export PATH=$PWD:$PATH
pascal@46 20 PREFIX=$TARGET-uclibc-gnu
pascal@46 21 for i in /usr/bin/uclibc-$TARGET-* ; do
pascal@46 22 ln -s $i ./$PREFIX-${i#/usr/bin/uclibc-$TARGET-}
pascal@46 23 done
pascal@46 24
pascal@123 25 sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
pascal@123 26 sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
pascal@123 27
pascal@46 28 # Let's go !
pascal@46 29 ./configure \
pascal@46 30 --host=$PREFIX \
pascal@46 31 --prefix=/usr --bindir=/bin \
pascal@46 32 --libexecdir=/usr/bin --mandir=/usr/share/man
pascal@46 33 make &&
pascal@94 34 make DESTDIR=$DESTDIR install
pascal@46 35 }
pascal@46 36
pascal@46 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@46 38 genpkg_rules()
pascal@46 39 {
pascal@123 40 mkdir -p $fs/sbin
pascal@46 41 # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
pascal@123 42 cp -a $install/usr/sbin/pnpdump $fs/sbin
pascal@123 43 ln $fs/sbin/pnpdump $fs/sbin/isapnp
pascal@46 44 }