wok view adbfs-rootless/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | a1b12ae1c852 |
children | 72f2704d3ae0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="adbfs-rootless"
4 GITHASH="5b091a50cd2419e1cebe42aa1d0e1ad1f90fdfad"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="misc"
7 SHORT_DESC="A FUSE-based filesystem using the Android ADB interface"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://github.com/spion/adbfs-rootless"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
13 TAGS="sync"
15 DEPENDS="fuse"
16 BUILD_DEPENDS="pkg-config fuse-dev android-platform-tools"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/adbfs $fs/usr/bin
36 }