wok view exfat-utils/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents cac92e0c04fc
children b1356f30c0b8
line source
1 # SliTaz package receipt.
3 PACKAGE="exfat-utils"
4 VERSION="1.3.0"
5 CATEGORY="base-system"
6 SHORT_DESC="exFAT file system tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/relan/exfat"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/relan/exfat/archive/v$VERSION/$TARBALL"
12 PROVIDE="exfat-fuse"
14 DEPENDS="fuse"
15 BUILD_DEPENDS="autoconf automake fuse-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoreconf --install
27 ./configure
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/sbin $fs/usr
35 mv $install/usr/sbin/mount.exfat* $fs/sbin
36 cp -a $install/usr/sbin $fs/usr
37 }