wok-tiny view isapnptools/receipt @ rev 183

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