wok view potamus/receipt @ rev 19538
linld: add 'linld <kernel> <cmdline>' syntax
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 02 12:37:59 2016 +0100 (2016-12-02) |
parents | 72aaebadf37a |
children | f3e5f6a3ef9a |
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 libsamplerate"
16 BUILD_DEPENDS="gtk+-dev libglade-dev alsa-lib-dev libmad-dev \
17 libogg-dev libvorbis-dev libsamplerate-dev"
19 # Handle arch install
20 case "$SLTAZ_ARCH" in
21 i?86) DEPENDS="$DEPENDS flac" ;;
22 esac
24 # Handle cross compilation.
25 case "$ARCH" in
26 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
27 arm*) ARCH_ARGS="--disable-input-flac" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 # libmad for MP3
34 ./configure \
35 --disable-input-modplug \
36 --disable-input-audiofile \
37 --disable-input-opus \
38 --disable-output-ao \
39 --disable-output-jack \
40 $CONFIGURE_ARGS ${ARCH_ARGS} &&
41 make && make install &&
42 sed -i s'/Name=.*/Name=Potamus Audio Player/' \
43 ${DESTDIR}/usr/share/applications/*.desktop
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
52 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
53 $fs/usr/share/pixmaps
55 }