wok-6.x annotate potamus/receipt @ rev 23413
updated perl-xml-entities (1.0000 -> 1.0002)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 01 07:24:50 2020 +0100 (2020-04-01) |
parents | f3e5f6a3ef9a |
children | 241fb98cab1c |
rev | line source |
---|---|
pankso@16562 | 1 # SliTaz package receipt. |
pankso@16562 | 2 |
pankso@16562 | 3 PACKAGE="potamus" |
Hans-G?nter@21699 | 4 VERSION="17" |
pankso@16562 | 5 CATEGORY="multimedia" |
Hans-G?nter@21699 | 6 TAGS="music audio player mp3 ogg flac" |
pankso@16562 | 7 SHORT_DESC="Unbloated and easy to use GTK+ Audio player." |
pankso@16562 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16562 | 9 LICENSE="GPL3" |
Hans-G?nter@21699 | 10 WEB_SITE="http://offog.org/code/potamus/" |
Hans-G?nter@21699 | 11 |
pankso@16562 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16562 | 13 WGET_URL="http://offog.org/files/$TARBALL" |
Hans-G?nter@21699 | 14 |
Hans-G?nter@21699 | 15 DEPENDS="alsa-lib gtk+ libglade libmad libogg libsamplerate libvorbis" |
Hans-G?nter@21699 | 16 BUILD_DEPENDS="alsa-lib-dev gtk+-dev libglade-dev libmad-dev \ |
Hans-G?nter@21699 | 17 libogg-dev libsamplerate-dev libvorbis-dev" |
Hans-G?nter@21699 | 18 |
pankso@16562 | 19 HOST_ARCH="i486 arm" |
pankso@16562 | 20 |
pankso@16563 | 21 # Handle arch install |
pankso@16563 | 22 case "$SLTAZ_ARCH" in |
pankso@16563 | 23 i?86) DEPENDS="$DEPENDS flac" ;; |
pankso@16563 | 24 esac |
pankso@16562 | 25 |
pankso@16562 | 26 # Handle cross compilation. |
pankso@16562 | 27 case "$ARCH" in |
pascal@21370 | 28 i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" |
pascal@21370 | 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm" ;; |
pankso@16562 | 30 arm*) ARCH_ARGS="--disable-input-flac" ;; |
pankso@16562 | 31 esac |
pankso@16562 | 32 |
pankso@16562 | 33 # Rules to configure and make the package. |
pankso@16562 | 34 compile_rules() |
pankso@16562 | 35 { |
pankso@16564 | 36 # libmad for MP3 |
Hans-G?nter@21699 | 37 ./configure \ |
Hans-G?nter@21699 | 38 --disable-input-modplug \ |
Hans-G?nter@21699 | 39 --disable-input-audiofile \ |
Hans-G?nter@21699 | 40 --disable-input-opus \ |
Hans-G?nter@21699 | 41 --disable-output-ao \ |
Hans-G?nter@21699 | 42 --disable-output-jack \ |
pankso@16562 | 43 $CONFIGURE_ARGS ${ARCH_ARGS} && |
Hans-G?nter@21699 | 44 make && |
Hans-G?nter@21699 | 45 make install && |
pankso@16562 | 46 sed -i s'/Name=.*/Name=Potamus Audio Player/' \ |
pankso@16562 | 47 ${DESTDIR}/usr/share/applications/*.desktop |
pankso@16562 | 48 } |
pankso@16562 | 49 |
pankso@16562 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16562 | 51 genpkg_rules() |
pankso@16562 | 52 { |
Hans-G?nter@21699 | 53 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21699 | 54 |
Hans-G?nter@21699 | 55 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21699 | 56 cp -a $install/usr/share/${PACKAGE} $fs/usr/share |
pankso@16562 | 57 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \ |
pankso@16562 | 58 $fs/usr/share/pixmaps |
pankso@16562 | 59 } |