wok annotate dosfstools/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 | 6f4d84436b9f |
children | bc06829bd4f2 |
rev | line source |
---|---|
pankso@143 | 1 # SliTaz package receipt. |
pankso@143 | 2 |
pankso@143 | 3 PACKAGE="dosfstools" |
pascal@20194 | 4 VERSION="4.1" |
pankso@202 | 5 CATEGORY="system-tools" |
slaxemulator@6324 | 6 SHORT_DESC="Tools to create and check dos filesystems." |
pankso@143 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL3" |
slaxemulator@15842 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@20194 | 10 WEB_SITE="https://github.com/$PACKAGE/$PACKAGE" |
pascal@20194 | 11 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL" |
pankso@16078 | 12 HOST_ARCH="i486 arm" |
pankso@143 | 13 |
psychomaniak@18234 | 14 BUILD_DEPENDS="wget" |
psychomaniak@18234 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pankso@143 | 22 # Rules to configure and make the package. |
pankso@143 | 23 compile_rules() |
pankso@143 | 24 { |
pascal@20194 | 25 ./configure && |
pascal@20194 | 26 make && |
pascal@20194 | 27 make DESTDIR=$DESTDIR install |
pankso@143 | 28 } |
pankso@143 | 29 |
pankso@143 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@143 | 31 genpkg_rules() |
pankso@143 | 32 { |
pascal@20230 | 33 mkdir -p $fs/usr |
pascal@20196 | 34 cp -a $install/usr/sbin $fs/usr |
pankso@143 | 35 } |