wok-6.x annotate speedtouch/receipt @ rev 24873
updated lynis (3.0.6 -> 3.0.7)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 31 07:46:22 2022 +0100 (2022-03-31) |
parents | 600aaedb561d |
children | 7dd01dedad38 |
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" |
pascal@15590 | 7 LICENSE="GPL2" |
jozee@4591 | 8 SHORT_DESC="Driver for the ADSL Speed Touch USB modem" |
jozee@4591 | 9 WEB_SITE="http://speedtouch.sourceforge.net/" |
jozee@4591 | 10 DEPENDS="bash" |
jozee@4591 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
jozee@4591 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
jozee@4591 | 13 |
pascal@24348 | 14 # What is the latest version available today? |
pascal@24348 | 15 current_version() |
pascal@24348 | 16 { |
pascal@24348 | 17 wget -O - https://sourceforge.net/projects/speedtouch/files/speedtouch%20driver/ 2>/dev/null | \ |
pascal@24348 | 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 19 sed '/scope="row/!d;s|.*/speedtouch%20driver/Release%20||;s|/.*||;q' |
pascal@24348 | 20 } |
jozee@4591 | 21 |
jozee@4591 | 22 # Rules to configure and make the package. |
jozee@4591 | 23 compile_rules() { |
jozee@4591 | 24 cd $src |
jozee@4591 | 25 while read file; do |
jozee@4591 | 26 [ -f done.$file ] && continue |
jozee@4591 | 27 echo "Apply $file..." |
pascal@8974 | 28 patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1 |
jozee@4591 | 29 touch done.$file |
jozee@4591 | 30 done <<EOT |
jozee@4591 | 31 gcc4.u |
jozee@4591 | 32 EOT |
gokhlayeh@11573 | 33 ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \ |
gokhlayeh@11573 | 34 $CONFIGURE_ARGS && |
jozee@4591 | 35 make && |
pascal@15590 | 36 make prefix=$DESTDIR/usr sysconfdir=$DESTDIR/etc mandir=$DESTDIR/usr/share/man install |
jozee@4591 | 37 } |
jozee@4591 | 38 |
jozee@4591 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4591 | 40 genpkg_rules() |
jozee@4591 | 41 { |
jozee@4591 | 42 mkdir -p $fs/usr/share |
pascal@15590 | 43 cp -a $install/usr/bin $fs/usr |
pascal@15590 | 44 cp -a $install/usr/sbin $fs/usr |
pascal@15590 | 45 cp -a $install/etc $fs |
pascal@15590 | 46 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
jozee@4591 | 47 } |