wok annotate alsaplayer/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (16 months ago)
parents 7dd01dedad38
children
rev   line source
pankso@32 1 # SliTaz package receipt.
pankso@32 2
pankso@32 3 PACKAGE="alsaplayer"
slaxemulator@7189 4 VERSION="0.99.81"
pankso@177 5 CATEGORY="multimedia"
pankso@16248 6 SHORT_DESC="Alsa GTK+ PCM audio player."
pankso@32 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pascal@25460 9 WEB_SITE="https://alsaplayer.sourceforge.net/"
pankso@32 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19275 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@13515 12 TAGS="music audio player mp3 ogg flac"
pankso@16248 13 HOST_ARCH="i486 arm"
pascal@13515 14
pankso@16248 15 SUGGESTED="alsaplayer-scopes libid3tag flac"
al@19265 16 DEPENDS="gtk+ alsa-lib libmad libogg libvorbis xorg-libXdamage"
pankso@16248 17 BUILD_DEPENDS="gtk+-dev alsa-lib-dev libmad-dev libogg-dev libvorbis-dev"
pankso@16248 18
pankso@16248 19 # Handle cross compilation.
pankso@16248 20 case "$ARCH" in
pankso@16248 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
pankso@16248 22 esac
pankso@32 23
pascal@25461 24 # What is the latest version available today?
pascal@24066 25 current_version()
pascal@24066 26 {
pascal@24071 27 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24071 28 sed '/Released/!d;s|.*: ||;s|<.*||'
pascal@24066 29 }
pascal@24066 30
pankso@32 31 # Rules to configure and make the package.
pankso@32 32 compile_rules()
pankso@32 33 {
psychomaniak@18152 34 i="$src/interface/gtk2/pixmaps"
psychomaniak@18152 35 cp -f $i/note.xpm $i/logo.xpm
psychomaniak@18152 36 sed -i 's/note/logo/' $i/logo.xpm
psychomaniak@18152 37
pankso@32 38 ./configure \
pankso@4159 39 --enable-gtk2 \
pascal@13515 40 --enable-flac \
pankso@5119 41 --disable-jack \
pankso@5119 42 --disable-esd \
pascal@1524 43 $CONFIGURE_ARGS &&
pascal@1524 44 make &&
pankso@32 45 # Chmod install-sh to avoid install error.
pascal@1524 46 chmod 755 install-sh &&
pascal@13515 47 make DESTDIR=$DESTDIR install
pankso@32 48 }
pankso@32 49
pankso@32 50 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@32 51 genpkg_rules()
pankso@32 52 {
pankso@574 53 mkdir -p $fs/usr/lib
pankso@3816 54
pascal@13515 55 cp -a $install/usr/bin $fs/usr
pascal@13515 56 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@13515 57 cp -a $install/usr/lib/alsaplayer $fs/usr/lib
pankso@3816 58
pankso@579 59 # Remove devel files and scopes.
pankso@32 60 rm $fs/usr/lib/alsaplayer/*/*.*a
pankso@579 61 rm -rf $fs/usr/lib/alsaplayer/scopes2
pankso@32 62 }