wok-next view potamus/receipt @ rev 20441
linux, linux-dev: fix mess with i386|i486, update 32bit config
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 24 05:41:11 2018 +0200 (2018-02-24) |
parents | 036843d192f2 |
children | c4e53a39395a |
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 export LDFLAGS="$LDFLAGS -lm"
34 # libmad for MP3
35 ./configure \
36 --disable-input-modplug \
37 --disable-input-audiofile \
38 --disable-input-opus \
39 --disable-output-ao \
40 --disable-output-jack \
41 $CONFIGURE_ARGS ${ARCH_ARGS} &&
42 make && make install &&
43 sed -i s'/Name=.*/Name=Potamus Audio Player/' \
44 ${DESTDIR}/usr/share/applications/*.desktop
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
53 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
54 $fs/usr/share/pixmaps
56 }