wok-6.x annotate speedtouch/receipt @ rev 8911

chess3d: get sources from slitaz mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 14:41:07 2011 +0100 (2011-02-28)
parents
children 940b5937e496
rev   line source
jozee@4591 1 # SliTaz package receipt.
jozee@4591 2
jozee@4591 3 PACKAGE="speedtouch"
jozee@4591 4 VERSION="1.3.1"
jozee@4591 5 CATEGORY="misc"
jozee@4591 6 MAINTAINER="jozee@slitaz.org"
jozee@4591 7 SHORT_DESC="Driver for the ADSL Speed Touch USB modem"
jozee@4591 8 WEB_SITE="http://speedtouch.sourceforge.net/"
jozee@4591 9 DEPENDS="bash"
jozee@4591 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
jozee@4591 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4591 12
jozee@4591 13
jozee@4591 14 # Rules to configure and make the package.
jozee@4591 15
jozee@4591 16 compile_rules() {
jozee@4591 17 cd $src
jozee@4591 18 while read file; do
jozee@4591 19 [ -f done.$file ] && continue
jozee@4591 20 echo "Apply $file..."
jozee@4591 21 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
jozee@4591 22 touch done.$file
jozee@4591 23 done <<EOT
jozee@4591 24 gcc4.u
jozee@4591 25 EOT
jozee@4591 26 ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man &&
jozee@4591 27 make &&
jozee@4591 28 make prefix=$PWD/_pkg/usr sysconfdir=$PWD/_pkg/etc mandir=$PWD/_pkg/usr/share/man install
jozee@4591 29 }
jozee@4591 30
jozee@4591 31 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4591 32 genpkg_rules()
jozee@4591 33 {
jozee@4591 34 mkdir -p $fs/usr/share
jozee@4591 35 cp -a $_pkg/usr/bin $fs/usr
jozee@4591 36 cp -a $_pkg/usr/sbin $fs/usr
jozee@4591 37 cp -a $_pkg/etc $fs
jozee@4591 38 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
jozee@4591 39 }