wok-current view speedtouch/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | e919c5a2742d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="speedtouch"
4 VERSION="1.3.1"
5 CATEGORY="misc"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="Driver for the ADSL Speed Touch USB modem"
9 WEB_SITE="https://speedtouch.sourceforge.net/"
10 DEPENDS="bash"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/speedtouch/files/speedtouch%20driver/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
19 sed '/scope="row/!d;s|.*/speedtouch%20driver/Release%20||;s|/.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules() {
24 cd $src
25 while read file; do
26 [ -f done.$file ] && continue
27 echo "Apply $file..."
28 patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1
29 touch done.$file
30 done <<EOT
31 gcc4.u
32 EOT
33 ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make prefix=$DESTDIR/usr sysconfdir=$DESTDIR/etc mandir=$DESTDIR/usr/share/man install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/etc $fs
46 cp -a $install/usr/share/$PACKAGE $fs/usr/share
47 }