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