wok-next diff deadbeef/receipt @ rev 20459

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 13:45:43 2018 +0200 (2018-03-02)
parents 860ce5da84ab
children d43bf7aae921
line diff
     1.1 --- a/deadbeef/receipt	Mon Dec 09 15:20:40 2013 +0000
     1.2 +++ b/deadbeef/receipt	Fri Mar 02 13:45:43 2018 +0200
     1.3 @@ -1,41 +1,64 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="deadbeef"
     1.8 -VERSION="0.5.6"
     1.9 +VERSION="0.7.2"
    1.10  CATEGORY="multimedia"
    1.11 -SHORT_DESC="Simple to use GTK+ audio player with systray support."
    1.12 +SHORT_DESC="Simple to use GTK+ audio player with systray support"
    1.13  MAINTAINER="pankso@slitaz.org"
    1.14  LICENSE="GPL2 LGPL2.1"
    1.15 -SUGGESTED="deadbeef-plugins"
    1.16 +WEB_SITE="http://deadbeef.sourceforge.net/"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.19 -WEB_SITE="http://deadbeef.sourceforge.net/"
    1.20  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.21 -TAGS="music audio player mp3 ogg ape"
    1.22  
    1.23 -DEPENDS="gtk+ alsa-lib libogg libvorbis libsamplerate libmad"
    1.24  BUILD_DEPENDS="gtk+-dev alsa-lib-dev libogg-dev libvorbis-dev libmad-dev \
    1.25  libsndfile-dev libsamplerate-dev flac-dev curl-dev libcdio-dev \
    1.26  libcddb-dev intltool libsndfile libcurl yasm libzip-dev util-linux-uuid-dev"
    1.27 +SPLIT="deadbeef-plugins deadbeef-dev"
    1.28  
    1.29 -# Rules to configure and make the package.
    1.30 -compile_rules()
    1.31 -{
    1.32 -	cd $src
    1.33 -	./configure CFLAGS="-I/usr/lib/libzip/include" $CONFIGURE_ARGS && 
    1.34 -	make && make install
    1.35 +BUILD_DEPENDS="gettext intltool yasm zlib-dev jansson-dev gtk+-dev \
    1.36 +alsa-lib-dev dbus-dev curl-dev libmad-dev libvorbis-dev libogg-dev flac-dev \
    1.37 +libsndfile-dev libcdio-dev libcddb-dev cdparanoia-III-dev xorg-libX11-dev \
    1.38 +imlib2-dev libjpeg-turbo-dev libpng16-dev libsamplerate-dev faad2-dev "
    1.39 +SPLIT="deadbeef-plugins deadbeef-dev"
    1.40 +
    1.41 +compile_rules() {
    1.42 +	./configure $CONFIGURE_ARGS && make && make install
    1.43  }
    1.44  
    1.45 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 -genpkg_rules()
    1.47 -{
    1.48 -	mkdir -p $fs/usr/lib/$PACKAGE $fs/usr/share/pixmaps $fs/usr/share/doc
    1.49 -	cp -a $install/usr/bin $fs/usr
    1.50 -	for l in alsa ddb_gui_GTK2 hotkeys vorbis mpgmad
    1.51 -	do
    1.52 -		cp -a $install/usr/lib/$PACKAGE/$l.so* $fs/usr/lib/$PACKAGE
    1.53 -	done
    1.54 -	cp -a $install/usr/share/$PACKAGE $fs/usr/share
    1.55 -	cp -a $install/usr/share/doc/$PACKAGE $fs/usr/share/doc
    1.56 -	cp -a $install/usr/share/icons/hicolor/32x32/apps/*.png \
    1.57 -		$fs/usr/share/pixmaps
    1.58 +genpkg_rules() {
    1.59 +	case $PACKAGE in
    1.60 +		deadbeef)
    1.61 +			# only limited set of plugins
    1.62 +			copy bin/ applications/ pixmaps/ \
    1.63 +			alsa.so ddb_gui_GTK2.so hotkeys.so m3u.so mms.so mp3.so notify.so \
    1.64 +			supereq.so vorbis.so
    1.65 +			cook_copy_icons
    1.66 +			DEPENDS="alsa-lib atk cairo dbus fontconfig freetype gdk-pixbuf \
    1.67 +			glib gtk+ jansson libmad libvorbis pango xorg-libX11"
    1.68 +			SUGGESTED="deadbeef-plugins"
    1.69 +			TAGS="music audio player mp3 ogg ape"
    1.70 +			;;
    1.71 +		deadbeef-plugins)
    1.72 +			copy @std
    1.73 +			remove_already_packed; rm -r $fs/usr/share
    1.74 +			CAT="multimedia|extra plugins"
    1.75 +			DEPENDS="deadbeef faad2 flac imlib2 libcddb libcdio libcurl \
    1.76 +			libogg libsamplerate libsndfile zlib"
    1.77 +			TAGS="music audio player mp3 ogg ape"
    1.78 +			;;
    1.79 +		*-dev)
    1.80 +			copy @dev
    1.81 +			DEPENDS="deadbeef deadbeef-plugins \
    1.82 +			alsa-lib-dev atk-dev bzip2-dev cairo-dev curl-dev dbus-dev \
    1.83 +			faad2-dev flac-dev fontconfig-dev freetype-dev gdk-pixbuf-dev \
    1.84 +			glib-dev gtk+-dev harfbuzz-dev imlib2-dev jansson-dev libcddb-dev \
    1.85 +			libcdio-dev libffi-dev libidn2-dev libmad-dev libogg-dev \
    1.86 +			libpng16-dev libsamplerate-dev libsndfile-dev libssh2-dev \
    1.87 +			libvorbis-dev libxml2-dev openssl-dev pango-dev pcre-dev \
    1.88 +			util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev \
    1.89 +			xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
    1.90 +			xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
    1.91 +			;;
    1.92 +	esac
    1.93  }