wok-next diff cdrdao/receipt @ rev 20488

palemoon: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 11:00:54 2018 +0100 (2018-03-12)
parents a9236dc0f5fb
children d6378d455338
line diff
     1.1 --- a/cdrdao/receipt	Sat Oct 21 17:21:52 2017 +0200
     1.2 +++ b/cdrdao/receipt	Mon Mar 12 11:00:54 2018 +0100
     1.3 @@ -1,21 +1,20 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="cdrdao"
     1.8  VERSION="1.2.3"
     1.9  CATEGORY="multimedia"
    1.10 -SHORT_DESC="Records audio/data CD-Rs using toc files"
    1.11 +SHORT_DESC="Records audio/data CD-Rs using TOC files"
    1.12  MAINTAINER="jozee@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="https://sourceforge.net/projects/cdrdao/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WEB_SITE="http://downloads.sourceforge.net/$PACKAGE" 
    1.18 -WGET_URL="$WEB_SITE/$TARBALL"
    1.19 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.20  
    1.21 -DEPENDS="gcc-lib-base lame libmad libvorbis libao"
    1.22  BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev"
    1.23 +SPLIT="cdrdao-utils"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 +compile_rules() {
    1.29  	for i in trackdb/*.cc ; do
    1.30  		grep -q string.h $i && continue
    1.31  		grep -q util.h $i || continue
    1.32 @@ -28,15 +27,28 @@
    1.33  		scsilib/libscg/scsi-linux-sg.c
    1.34  	patch -Np1 -i $stuff/$PACKAGE-$VERSION-stat.patch || return 1
    1.35  	export CXXFLAGS="-Wno-narrowing"
    1.36 -	./configure --prefix=/usr --with-lame $CONFIGURE_ARGS &&
    1.37 +	./configure \
    1.38 +		--prefix=/usr \
    1.39 +		--with-lame \
    1.40 +		$CONFIGURE_ARGS &&
    1.41  	make &&
    1.42  	make DESTDIR=$DESTDIR 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/bin
    1.49 -	cp -a $install/usr/bin/cdrdao $fs/usr/bin
    1.50 -	cp -a $install/usr/share $fs/usr
    1.51 +genpkg_rules() {
    1.52 +	case $PACKAGE in
    1.53 +		cdrdao)
    1.54 +			mkdir -p $fs/usr/bin
    1.55 +			cp -a $install/usr/bin/cdrdao $fs/usr/bin
    1.56 +			cp -a $install/usr/share $fs/usr
    1.57 +			DEPENDS="gcc-lib-base lame libmad libvorbis libao"
    1.58 +			;;
    1.59 +		cdrdao-utils)
    1.60 +			mkdir -p $fs/usr/bin
    1.61 +			cp -a $install/usr/bin/ $fs/usr
    1.62 +			rm $fs/usr/bin/cdrdao
    1.63 +			CAT="multimedia|extra utilities"
    1.64 +			DEPENDS="lame libao libmad libogg libvorbis"
    1.65 +			;;
    1.66 +	esac
    1.67  }