wok annotate mtpfs/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 | 09ae50a374ae |
children | ac8ca9758df1 |
rev | line source |
---|---|
keupont@2885 | 1 # SliTaz package receipt. |
keupont@2885 | 2 |
keupont@2885 | 3 PACKAGE="mtpfs" |
Hans-G?nter@23200 | 4 VERSION="2.0" |
keupont@2885 | 5 CATEGORY="multimedia" |
Hans-G?nter@23200 | 6 SHORT_DESC="FUSE filesystem that supports reading and writing from any MTP device." |
keupont@2885 | 7 MAINTAINER="keupont@no-log.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@20671 | 9 WEB_SITE="https://www.adebenham.com/mtpfs/" |
Hans-G?nter@23200 | 10 |
pascal@14999 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23200 | 12 WGET_URL="https://github.com/Feandil/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@14999 | 13 |
Hans-G?nter@23200 | 14 DEPENDS="fuse libgio libid3tag libmad libmtp" |
Hans-G?nter@23200 | 15 BUILD_DEPENDS="autoconf automake fuse-dev libid3tag-dev libmad-dev libmtp-dev" |
keupont@2885 | 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 |
keupont@2885 | 23 # Rules to configure and make the package. |
keupont@2885 | 24 compile_rules() |
keupont@2885 | 25 { |
Hans-G?nter@23200 | 26 aclocal && |
Hans-G?nter@23200 | 27 autoconf && |
Hans-G?nter@23200 | 28 automake -a && |
Hans-G?nter@23200 | 29 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@23200 | 30 make && |
Hans-G?nter@23200 | 31 make install |
keupont@2885 | 32 } |
keupont@2885 | 33 |
keupont@2885 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
keupont@2885 | 35 genpkg_rules() |
keupont@2885 | 36 { |
keupont@2885 | 37 mkdir -p $fs/usr |
Hans-G?nter@23200 | 38 cp -a $install/usr/bin $fs/usr |
keupont@2885 | 39 } |