wok view alsaplayer/receipt @ rev 24203
updated perl-exporter-tiny (1.002001 -> 1.002002)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 15:25:57 2021 +0100 (2021-12-31) |
parents | 68cf96abc146 |
children | 7dd01dedad38 |
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="http://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 current_version()
25 {
26 wget -O - $WEB_SITE 2>/dev/null | \
27 sed '/Released/!d;s|.*: ||;s|<.*||'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 i="$src/interface/gtk2/pixmaps"
34 cp -f $i/note.xpm $i/logo.xpm
35 sed -i 's/note/logo/' $i/logo.xpm
37 ./configure \
38 --enable-gtk2 \
39 --enable-flac \
40 --disable-jack \
41 --disable-esd \
42 $CONFIGURE_ARGS &&
43 make &&
44 # Chmod install-sh to avoid install error.
45 chmod 755 install-sh &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 cp -a $install/usr/lib/alsaplayer $fs/usr/lib
58 # Remove devel files and scopes.
59 rm $fs/usr/lib/alsaplayer/*/*.*a
60 rm -rf $fs/usr/lib/alsaplayer/scopes2
61 }