wok-next diff potamus/receipt @ rev 21274

gejengel: inserted modification of configure files from cooking
author Hans-G?nter Theisgen
date Sat Dec 07 15:42:09 2019 +0100 (2019-12-07)
parents f48456621a9d
children b9a01cf772c4
line diff
     1.1 --- a/potamus/receipt	Tue Oct 16 16:46:05 2018 +0300
     1.2 +++ b/potamus/receipt	Sat Dec 07 15:42:09 2019 +0100
     1.3 @@ -1,35 +1,22 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="potamus"
     1.8  VERSION="15"
     1.9  CATEGORY="multimedia"
    1.10 -SHORT_DESC="Unbloated and easy to use GTK+ Audio player."
    1.11 -MAINTAINER="pankso@slitaz.org"
    1.12 +SHORT_DESC="Unbloated and easy to use GTK+ Audio player"
    1.13 +MAINTAINER="devel@slitaz.org"
    1.14  LICENSE="GPL3"
    1.15 +WEB_SITE="http://offog.org/code/potamus/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://offog.org/code/potamus/"
    1.19  WGET_URL="http://offog.org/files/$TARBALL"
    1.20 -TAGS="music audio player mp3 ogg flac"
    1.21  
    1.22 -DEPENDS="gtk2 libglade alsa-lib libmad libogg libvorbis libsamplerate"
    1.23  BUILD_DEPENDS="gtk2-dev libglade-dev alsa-lib-dev libmad-dev \
    1.24 -libogg-dev libvorbis-dev libsamplerate-dev"
    1.25 +libogg-dev libvorbis-dev libsamplerate-dev flac-dev"
    1.26  
    1.27 -# Handle arch install
    1.28 -case "$SLTAZ_ARCH" in
    1.29 -	i?86) DEPENDS="$DEPENDS flac" ;;
    1.30 -esac
    1.31 +compile_rules() {
    1.32 +	export LDFLAGS="$LDFLAGS -lm"
    1.33  
    1.34 -# Handle cross compilation.
    1.35 -case "$ARCH" in
    1.36 -	i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" ;;
    1.37 -	arm*) ARCH_ARGS="--disable-input-flac" ;;
    1.38 -esac
    1.39 -
    1.40 -# Rules to configure and make the package.
    1.41 -compile_rules()
    1.42 -{
    1.43 -	export LDFLAGS="$LDFLAGS -lm"
    1.44  	# libmad for MP3
    1.45  	./configure \
    1.46  		--disable-input-modplug \
    1.47 @@ -37,20 +24,16 @@
    1.48  		--disable-input-opus \
    1.49  		--disable-output-ao \
    1.50  		--disable-output-jack \
    1.51 -		$CONFIGURE_ARGS ${ARCH_ARGS} &&
    1.52 -	make && make install &&
    1.53 +		$CONFIGURE_ARGS &&
    1.54 +	make &&
    1.55 +	make install || return 1
    1.56 +
    1.57  	sed -i s'/Name=.*/Name=Potamus Audio Player/' \
    1.58 -		${DESTDIR}/usr/share/applications/*.desktop
    1.59 +		$install/usr/share/applications/*.desktop
    1.60  }
    1.61  
    1.62 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.63 -genpkg_rules()
    1.64 -{
    1.65 -	mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
    1.66 -	cp -a $install/usr/bin $fs/usr
    1.67 -	cp -a $install/usr/share/${PACKAGE} $fs/usr/share
    1.68 -	cp -a $install/usr/share/icons/hicolor/48x48/*/${PACKAGE}.png \
    1.69 -		$fs/usr/share/pixmaps
    1.70 -	
    1.71 +genpkg_rules() {
    1.72 +	copy @std @ico
    1.73 +	DEPENDS="gtk2 libglade alsa-lib libmad libogg libvorbis libsamplerate flac"
    1.74 +	TAGS="music audio player mp3 ogg flac"
    1.75  }
    1.76 -