wok 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 | 5dd63acec41c |
children | 72aaebadf37a |
files | potamus/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/potamus/receipt Thu May 01 11:03:42 2014 +0200 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="potamus" 1.7 +VERSION="15" 1.8 +CATEGORY="multimedia" 1.9 +SHORT_DESC="Unbloated and easy to use GTK+ Audio player." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="GPL3" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://offog.org/code/potamus/" 1.14 +WGET_URL="http://offog.org/files/$TARBALL" 1.15 +TAGS="music audio player mp3 ogg flac" 1.16 +HOST_ARCH="i486 arm" 1.17 + 1.18 +DEPENDS="gtk+ libglade alsa-lib libmad libogg libvorbis" 1.19 +BUILD_DEPENDS="gtk+-dev libglade-dev alsa-lib-dev libmad-dev \ 1.20 +libogg-dev libvorbis-dev" 1.21 + 1.22 +# Handle cross compilation. 1.23 +case "$ARCH" in 1.24 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;; 1.25 + arm*) ARCH_ARGS="--disable-input-flac" ;; 1.26 +esac 1.27 + 1.28 +# Rules to configure and make the package. 1.29 +compile_rules() 1.30 +{ 1.31 + ./configure \ 1.32 + --disable-input-modplug \ 1.33 + $CONFIGURE_ARGS ${ARCH_ARGS} && 1.34 + make && make install && 1.35 + sed -i s'/Name=.*/Name=Potamus Audio Player/' \ 1.36 + ${DESTDIR}/usr/share/applications/*.desktop 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs/usr/lib $fs/usr/share/pixmaps 1.43 + cp -a $install/usr/bin $fs/usr 1.44 + cp -a $install/usr/share/${PACKAGE} $fs/usr/share 1.45 + cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \ 1.46 + $fs/usr/share/pixmaps 1.47 + 1.48 +} 1.49 +