wok-tiny view isapnptools/receipt @ rev 135

hardware-ibm-6272: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 30 10:57:54 2017 +0200 (2017-09-30)
parents 371673f39e46
children 1e55ea7da8de
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 [ -n "$TARGET" ] || TARGET="i486"
10 BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WEB_SITE="http://www.roestock.demon.co.uk/isapnptools/"
13 WGET_URL="http://mirror.slitaz.org/sources/packages/i/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 # Fix cross tools prefix...
19 export PATH=$PWD:$PATH
20 PREFIX=$TARGET-uclibc-gnu
21 for i in /usr/bin/uclibc-$TARGET-* ; do
22 ln -s $i ./$PREFIX-${i#/usr/bin/uclibc-$TARGET-}
23 done
25 sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
26 sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
28 # Let's go !
29 ./configure \
30 --host=$PREFIX \
31 --prefix=/usr --bindir=/bin \
32 --libexecdir=/usr/bin --mandir=/usr/share/man
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/sbin
41 # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
42 cp -a $install/usr/sbin/pnpdump $fs/sbin
43 ln $fs/sbin/pnpdump $fs/sbin/isapnp
44 }