wok-next view potamus/receipt @ rev 20554
Fix build brasero, clutter-gtk, freetype-infinality, gnome-commander
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 16:49:09 2018 +0300 (2018-04-06) |
parents | 15aee388a459 |
children | f48456621a9d |
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"
14 DEPENDS="gtk+ libglade alsa-lib libmad libogg libvorbis libsamplerate"
15 BUILD_DEPENDS="gtk+-dev libglade-dev alsa-lib-dev libmad-dev \
16 libogg-dev libvorbis-dev libsamplerate-dev"
18 # Handle arch install
19 case "$SLTAZ_ARCH" in
20 i?86) DEPENDS="$DEPENDS flac" ;;
21 esac
23 # Handle cross compilation.
24 case "$ARCH" in
25 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
26 arm*) ARCH_ARGS="--disable-input-flac" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 export LDFLAGS="$LDFLAGS -lm"
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 }