wok annotate fxload/receipt @ rev 24992
Up sip (4.19.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 14 18:19:29 2022 +0000 (2022-05-14) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
pascal@1180 | 1 # SliTaz package receipt. |
pascal@1180 | 2 |
pascal@1180 | 3 PACKAGE="fxload" |
pascal@17332 | 4 VERSION="2008_10_13" |
pascal@1180 | 5 CATEGORY="system-tools" |
pascal@17332 | 6 SHORT_DESC="Download firmware into FX, FX2, and FX2LP EZ-USB devices." |
pascal@1180 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@17332 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20421 | 10 WEB_SITE="https://sourceforge.net/projects/linux-hotplug/" |
pascal@17332 | 11 WGET_URL="$SF_MIRROR/linux-hotplug/$PACKAGE/$VERSION/$TARBALL" |
pascal@1180 | 12 |
pascal@24385 | 13 # What is the latest version available today? |
pascal@24385 | 14 current_version() |
pascal@24385 | 15 { |
pascal@24385 | 16 wget -O - https://sourceforge.net/projects/linux-hotplug/files/fxload/ 2>/dev/null | \ |
pascal@24385 | 17 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 18 sed '/scope="row/!d;s|.*/fxload/||;s|/.*||;q' |
pascal@24385 | 19 } |
pascal@24385 | 20 |
pascal@1180 | 21 # Rules to configure and make the package. |
pascal@1180 | 22 compile_rules() |
pascal@1180 | 23 { |
pascal@17332 | 24 make |
pascal@1180 | 25 } |
pascal@1180 | 26 |
pascal@1180 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1180 | 28 genpkg_rules() |
pascal@1180 | 29 { |
pascal@17332 | 30 mkdir -p $fs/usr/bin $fs/usr/share/usb |
pascal@17332 | 31 install $src/fxload $fs/usr/bin |
pascal@17332 | 32 install -m 0644 $src/a3load.hex $fs/usr/share/usb |
pascal@1180 | 33 } |
pascal@1180 | 34 |