wok-6.x annotate 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 |
rev | line source |
---|---|
pascal@13301 | 1 # SliTaz package receipt. |
pascal@13301 | 2 |
pascal@13301 | 3 PACKAGE="exfat-utils" |
mojo@20996 | 4 VERSION="1.3.0" |
pascal@13301 | 5 CATEGORY="base-system" |
pascal@13301 | 6 SHORT_DESC="exFAT file system tools." |
pascal@13301 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@20672 | 9 WEB_SITE="https://github.com/relan/exfat" |
pascal@13301 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
mojo@20996 | 11 WGET_URL="https://github.com/relan/exfat/archive/v$VERSION/$TARBALL" |
pascal@23935 | 12 PROVIDE="exfat-fuse" |
pascal@13301 | 13 |
mojo@20996 | 14 DEPENDS="fuse" |
mojo@20996 | 15 BUILD_DEPENDS="autoconf automake fuse-dev" |
pascal@13301 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@13301 | 23 # Rules to configure and make the package. |
pascal@13301 | 24 compile_rules() |
pascal@13301 | 25 { |
mojo@20996 | 26 autoreconf --install |
mojo@20996 | 27 ./configure |
mojo@20996 | 28 make DESTDIR=$DESTDIR install |
pascal@13301 | 29 } |
pascal@13301 | 30 |
pascal@13301 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13301 | 32 genpkg_rules() |
pascal@13301 | 33 { |
mojo@20996 | 34 mkdir -p $fs/sbin $fs/usr |
mojo@20996 | 35 mv $install/usr/sbin/mount.exfat* $fs/sbin |
mojo@20996 | 36 cp -a $install/usr/sbin $fs/usr |
pascal@13301 | 37 } |