wok-current annotate potamus/receipt @ rev 25525
created recipe for lua5.1-lpeg 1.0.2
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:54:40 2023 +0100 (18 months ago) |
parents | 48fa0606b323 |
children |
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 |
pascal@24453 | 33 # What is the latest version available today? |
pascal@24453 | 34 current_version() |
pascal@24453 | 35 { |
pascal@24453 | 36 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 37 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 38 } |
pascal@24453 | 39 |
pankso@16562 | 40 # Rules to configure and make the package. |
pankso@16562 | 41 compile_rules() |
pankso@16562 | 42 { |
pankso@16564 | 43 # libmad for MP3 |
Hans-G?nter@21699 | 44 ./configure \ |
Hans-G?nter@21699 | 45 --disable-input-modplug \ |
Hans-G?nter@21699 | 46 --disable-input-audiofile \ |
Hans-G?nter@21699 | 47 --disable-input-opus \ |
Hans-G?nter@21699 | 48 --disable-output-ao \ |
Hans-G?nter@21699 | 49 --disable-output-jack \ |
pankso@16562 | 50 $CONFIGURE_ARGS ${ARCH_ARGS} && |
Hans-G?nter@21699 | 51 make && |
Hans-G?nter@21699 | 52 make install && |
pankso@16562 | 53 sed -i s'/Name=.*/Name=Potamus Audio Player/' \ |
pankso@16562 | 54 ${DESTDIR}/usr/share/applications/*.desktop |
pankso@16562 | 55 } |
pankso@16562 | 56 |
pankso@16562 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16562 | 58 genpkg_rules() |
pankso@16562 | 59 { |
Hans-G?nter@21699 | 60 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21699 | 61 |
Hans-G?nter@21699 | 62 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21699 | 63 cp -a $install/usr/share/${PACKAGE} $fs/usr/share |
pankso@16562 | 64 cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \ |
pankso@16562 | 65 $fs/usr/share/pixmaps |
pankso@16562 | 66 } |