wok annotate audiofile/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | 6cfb86797173 |
children | e1e1678c5265 |
rev | line source |
---|---|
allan316@3643 | 1 # SliTaz package receipt. |
allan316@3643 | 2 |
allan316@3643 | 3 PACKAGE="audiofile" |
Hans-G?nter@20726 | 4 VERSION="0.3.6" |
allan316@3643 | 5 CATEGORY="development" |
pankso@16034 | 6 SHORT_DESC="Uniform and elegant API for various audio file formats" |
allan316@3643 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://www.68k.org/~michael/audiofile/" |
Hans-G?nter@20726 | 10 |
allan316@3643 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@12321 | 12 WGET_URL="http://audiofile.68k.org/$TARBALL" |
pankso@16122 | 13 HOST_ARCH="i486 arm" |
slaxemulator@12321 | 14 |
slaxemulator@12321 | 15 DEPENDS="alsa-lib" |
slaxemulator@12321 | 16 BUILD_DEPENDS="alsa-lib-dev" |
allan316@3643 | 17 |
pascal@24373 | 18 # What is the latest version available today? |
pascal@24373 | 19 current_version() |
pascal@24373 | 20 { |
pascal@24373 | 21 wget -O - https://github.com/mpruett/audiofile/tags 2>/dev/null | \ |
pascal@24373 | 22 sed '/archive.*tar/!d;s|.*/audiofile-\(.*\).tar.*|\1|;q' |
pascal@24373 | 23 } |
pascal@24373 | 24 |
allan316@3643 | 25 # Rules to configure and make the package. |
allan316@3643 | 26 compile_rules() |
allan316@3643 | 27 { |
allan316@3643 | 28 ./configure \ |
allan316@3643 | 29 $CONFIGURE_ARGS && |
Hans-G?nter@20726 | 30 make && |
Hans-G?nter@20726 | 31 make DESTDIR=$DESTDIR install |
allan316@3643 | 32 } |
allan316@3643 | 33 |
allan316@3643 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3643 | 35 genpkg_rules() |
allan316@3643 | 36 { |
allan316@3643 | 37 mkdir -p $fs/usr/lib |
slaxemulator@12899 | 38 cp -a $install/usr/bin $fs/usr |
slaxemulator@12899 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
allan316@3643 | 40 } |