wok-current view sunxi-tools/receipt @ rev 25350
updated tea (60.6.0 -> 61.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 25 14:25:43 2022 +0100 (2022-07-25) |
parents | 7689fec2e794 |
children | 41581d281860 |
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://linux-sunxi.org/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 }