wok annotate sunxi-tools/receipt @ rev 25035

Up libqcow (20210419)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 18:11:13 2022 +0000 (2022-05-20)
parents 241fb98cab1c
children 7689fec2e794
rev   line source
pascal@13468 1 # SliTaz package receipt.
pascal@13468 2
pascal@13468 3 PACKAGE="sunxi-tools"
pascal@13468 4 VERSION="1.1-80-g3561247"
pascal@13468 5 CATEGORY="development"
pascal@13468 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@24894 9 WEB_SITE="https://linux-sunxi.org/Sunxi-tools"
pascal@13468 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13468 11 WGET_URL="https://nodeload.github.com/amery/sunxi-tools/tarball/v${VERSION}"
pascal@13468 12
pascal@13468 13 DEPENDS="libusb"
pascal@13469 14 BUILD_DEPENDS="wget pkg-config libusb-dev"
pascal@13468 15
pascal@24308 16 # What is the latest version available today?
pascal@24308 17 current_version()
pascal@24308 18 {
pascal@24453 19 wget -O - https://github.com/linux-sunxi/sunxi-tools/tags 2>/dev/null | \
pascal@24308 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 21 }
pascal@24308 22
pascal@13468 23 # Rules to configure and make the package.
pascal@13468 24 compile_rules()
pascal@13468 25 {
pascal@13468 26 cd $src
pascal@13468 27 make && make phoenix_info
pascal@13468 28 }
pascal@13468 29
pascal@13468 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13468 31 genpkg_rules()
pascal@13468 32 {
pascal@13468 33 mkdir -p $fs/usr/bin
pascal@13468 34 for i in pio nand-part fexc fex2bin fel fel-gpio bin/fel-pio.bin \
pascal@13468 35 bootinfo bin2fex bin/jtag-loop.sunxi phoenix_info ; do
pascal@13468 36 cp -a $src/$i $fs/usr/bin
pascal@13468 37 done
pascal@13468 38 }