wok annotate sunxi-tools/receipt @ rev 25564
Up memtest (6.20)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 11 15:58:49 2023 +0000 (18 months ago) |
parents | fe45ec24ff48 |
children |
rev | line source |
---|---|
pascal@13468 | 1 # SliTaz package receipt. |
pascal@13468 | 2 |
pascal@13468 | 3 PACKAGE="sunxi-tools" |
pascal@25054 | 4 VERSION="1.4.2" |
pascal@13468 | 5 CATEGORY="development" |
Hans-G?nter@25334 | 6 SHORT_DESC="Help hacking Allwinner A10 (aka sun4i) based devices." |
pascal@13468 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@25563 | 9 WEB_SITE="https://github.com/linux-sunxi/sunxi-tools" |
Hans-G?nter@25334 | 10 |
pascal@13468 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25334 | 12 WGET_URL="https://github.com/linux-sunxi/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@13468 | 13 |
pascal@13468 | 14 DEPENDS="libusb" |
Hans-G?nter@25334 | 15 BUILD_DEPENDS="pkg-config libusb-dev" |
pascal@13468 | 16 |
pascal@24308 | 17 # What is the latest version available today? |
pascal@24308 | 18 current_version() |
pascal@24308 | 19 { |
pascal@24453 | 20 wget -O - https://github.com/linux-sunxi/sunxi-tools/tags 2>/dev/null | \ |
pascal@24308 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 22 } |
pascal@24308 | 23 |
pascal@13468 | 24 # Rules to configure and make the package. |
pascal@13468 | 25 compile_rules() |
pascal@13468 | 26 { |
Hans-G?nter@25334 | 27 make DESTDIR=$DESTDIR PREFIX=/usr && |
Hans-G?nter@25334 | 28 make phoenix_info DESTDIR=$DESTDIR PREFIX=/usr && |
Hans-G?nter@25334 | 29 make install DESTDIR=$DESTDIR PREFIX=/usr |
pascal@13468 | 30 } |
pascal@13468 | 31 |
pascal@13468 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13468 | 33 genpkg_rules() |
pascal@13468 | 34 { |
Hans-G?nter@25334 | 35 cook_copy_folders bin |
Hans-G?nter@25334 | 36 cp -a $src/bin $fs/usr |
Hans-G?nter@25334 | 37 for i in sunxi-nand-part sunxi-pio sunxi-fexc fex2bin bin2fex sunxi-fel phoenix_info |
Hans-G?nter@25334 | 38 do |
Hans-G?nter@25334 | 39 cp -a $src/$i $fs/usr/bin |
Hans-G?nter@25334 | 40 done |
pascal@13468 | 41 } |