wok-next diff cdrtools/receipt @ rev 20946

Random updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Aug 31 10:21:22 2018 +0300 (2018-08-31)
parents 6befec62b46c
children 653202875a48
line diff
     1.1 --- a/cdrtools/receipt	Thu Aug 30 10:49:57 2018 +0300
     1.2 +++ b/cdrtools/receipt	Fri Aug 31 10:21:22 2018 +0300
     1.3 @@ -1,40 +1,47 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="cdrtools"
     1.8 -VERSION="3.00"
     1.9 +VERSION="3.01"
    1.10  CATEGORY="multimedia"
    1.11 -SHORT_DESC="Command line programs to record CD/DVD/BluRay media."
    1.12 +SHORT_DESC="Command line programs to record CD/DVD/BluRay media"
    1.13  MAINTAINER="paul@slitaz.org"
    1.14  LICENSE="GPL2 LGPL2.1"
    1.15  WEB_SITE="http://cdrtools.sourceforge.net/private/cdrecord.html"
    1.16 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WGET_URL="ftp://ftp.berlios.de/pub/cdrecord/$TARBALL"
    1.18  
    1.19 -DEPENDS=""
    1.20 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.21 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	# hack makefile
    1.27 -	cd $src/DEFAULTS
    1.28 -	sed -i 's/DEFINSGRP=	bin/DEFINSGRP=	root/' Defaults.linux
    1.29 -	cd ..
    1.30 -	{
    1.31 -		./configure
    1.32 -		make && make DESTDIR=$DESTDIR install
    1.33 -	} 2>&1 | sed 's/: No such/:  no such/'
    1.34 +BUILD_DEPENDS="acl-dev libcap-dev"
    1.35 +SPLIT="$PACKAGE-dev"
    1.36  
    1.37 -	mkdir -p $install/usr
    1.38 -	mv $install/opt/schily/* $install/usr
    1.39 +compile_rules() {
    1.40 +	sed -i 's|/opt/schily|/usr|g; s|DEFINSGRP=.*|DEFINSGRP=root|' \
    1.41 +		DEFAULTS/Defaults.linux
    1.42 +	# install rscsi to /usr/bin instead of /usr/sbin
    1.43 +	sed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile
    1.44 +
    1.45 +	export GMAKE_NOWARN=true INS_BASE=/usr INS_RBASE=/
    1.46 +	cp cdda2wav/lconfig.h.in cdda2wav/lconfig.h
    1.47 +
    1.48 +	make &&
    1.49 +	make install || return 1
    1.50 +
    1.51 +	# cdrkit compatibility
    1.52 +	ln -s cdrecord $install/usr/bin/wodim
    1.53 +	ln -s readcd   $install/usr/bin/readom
    1.54 +	ln -s mkisofs  $install/usr/bin/genisoimage
    1.55 +	ln -s cdda2wav $install/usr/bin/icedax
    1.56  }
    1.57  
    1.58 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.59 -genpkg_rules()
    1.60 -{
    1.61 -	mkdir -p $fs/usr/lib $fs/usr/share
    1.62 -	cp -a $install/etc $fs
    1.63 -	cp -a $install/usr/bin $fs/usr
    1.64 -	cp -a $install/usr/sbin $fs/usr
    1.65 -	cp -a $install/usr/lib/siconv $fs/usr/lib
    1.66 -	cp -a $install/usr/share/doc $fs/usr/share
    1.67 +genpkg_rules() {
    1.68 +	case $PACKAGE in
    1.69 +		cdrtools)
    1.70 +			copy @std
    1.71 +			DEPENDS="acl libcap"
    1.72 +			CONFIG_FILES="/etc/default/cdrecord /etc/default/rscsi"
    1.73 +			;;
    1.74 +		*-dev)
    1.75 +			copy @dev
    1.76 +			;;
    1.77 +	esac
    1.78  }