wok view potamus/receipt @ rev 16562

Ad Potamus audio player (may replace unmaintanied Alsaplayer)
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 01 11:03:42 2014 +0200 (2014-05-01)
parents
children 72aaebadf37a
line source
1 # SliTaz package receipt.
3 PACKAGE="potamus"
4 VERSION="15"
5 CATEGORY="multimedia"
6 SHORT_DESC="Unbloated and easy to use GTK+ Audio player."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://offog.org/code/potamus/"
11 WGET_URL="http://offog.org/files/$TARBALL"
12 TAGS="music audio player mp3 ogg flac"
13 HOST_ARCH="i486 arm"
15 DEPENDS="gtk+ libglade alsa-lib libmad libogg libvorbis"
16 BUILD_DEPENDS="gtk+-dev libglade-dev alsa-lib-dev libmad-dev \
17 libogg-dev libvorbis-dev"
19 # Handle cross compilation.
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
22 arm*) ARCH_ARGS="--disable-input-flac" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --disable-input-modplug \
30 $CONFIGURE_ARGS ${ARCH_ARGS} &&
31 make && make install &&
32 sed -i s'/Name=.*/Name=Potamus Audio Player/' \
33 ${DESTDIR}/usr/share/applications/*.desktop
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
42 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
43 $fs/usr/share/pixmaps
45 }