wok annotate yasm/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 74d396ffb02c
children e1e1678c5265
rev   line source
jozee@4536 1 # SliTaz package receipt.
jozee@4536 2
jozee@4536 3 PACKAGE="yasm"
devl547@17790 4 VERSION="1.3.0"
jozee@4536 5 CATEGORY="development"
jozee@4536 6 MAINTAINER="jozee@slitaz.org"
pascal@15198 7 LICENSE="BSD GPL2 LGPL2"
pankso@16026 8 SHORT_DESC="A rewrite of NASM with multiple syntax (NASM, TASM, GAS, etc.)"
jozee@4536 9 WEB_SITE="http://www.tortall.net/projects/yasm/"
jozee@4536 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@4536 11 WGET_URL="$WEB_SITE/releases/$TARBALL"
pankso@16026 12 HOST_ARCH="i486 arm"
jozee@4536 13
pankso@16026 14 DEPENDS=""
pascal@15198 15
pascal@24304 16 # What is the latest version available today?
pascal@24304 17 current_version()
pascal@24304 18 {
pascal@24304 19 wget -O - https://github.com/yasm/yasm/tags 2>/dev/null | \
pascal@24304 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24304 21 }
pascal@24304 22
jozee@4536 23 # Rules to configure and make the package.
slaxemulator@11873 24 compile_rules()
slaxemulator@11873 25 {
slaxemulator@10054 26 cd $src
slaxemulator@10054 27 ./configure $CONFIGURE_ARGS &&
slaxemulator@10054 28 make &&
slaxemulator@10054 29 make install
jozee@4536 30 }
jozee@4536 31
jozee@4536 32 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4536 33 genpkg_rules()
jozee@4536 34 {
jozee@4536 35 mkdir -p $fs/usr
pascal@15198 36 cp -a $install/usr/bin $fs/usr
jozee@4536 37 }