wok-current view potamus/receipt @ rev 25368
libmpd: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 29 10:44:25 2022 +0000 (2022-07-29) |
parents | 48fa0606b323 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="potamus"
4 VERSION="17"
5 CATEGORY="multimedia"
6 TAGS="music audio player mp3 ogg flac"
7 SHORT_DESC="Unbloated and easy to use GTK+ Audio player."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="http://offog.org/code/potamus/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://offog.org/files/$TARBALL"
15 DEPENDS="alsa-lib gtk+ libglade libmad libogg libsamplerate libvorbis"
16 BUILD_DEPENDS="alsa-lib-dev gtk+-dev libglade-dev libmad-dev \
17 libogg-dev libsamplerate-dev libvorbis-dev"
19 HOST_ARCH="i486 arm"
21 # Handle arch install
22 case "$SLTAZ_ARCH" in
23 i?86) DEPENDS="$DEPENDS flac" ;;
24 esac
26 # Handle cross compilation.
27 case "$ARCH" in
28 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev"
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" ;;
30 arm*) ARCH_ARGS="--disable-input-flac" ;;
31 esac
33 # What is the latest version available today?
34 current_version()
35 {
36 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
37 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
38 }
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 # libmad for MP3
44 ./configure \
45 --disable-input-modplug \
46 --disable-input-audiofile \
47 --disable-input-opus \
48 --disable-output-ao \
49 --disable-output-jack \
50 $CONFIGURE_ARGS ${ARCH_ARGS} &&
51 make &&
52 make install &&
53 sed -i s'/Name=.*/Name=Potamus Audio Player/' \
54 ${DESTDIR}/usr/share/applications/*.desktop
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/share/pixmaps
62 cp -a $install/usr/bin $fs/usr
63 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
64 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
65 $fs/usr/share/pixmaps
66 }