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