wok-next diff cdrkit/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 82b613cfd1e0
children
line diff
     1.1 --- a/cdrkit/receipt	Fri Jan 04 17:29:48 2019 +0200
     1.2 +++ b/cdrkit/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -3,65 +3,50 @@
     1.4  PACKAGE="cdrkit"
     1.5  VERSION="1.1.11"
     1.6  CATEGORY="utilities"
     1.7 -SHORT_DESC="Wodim for recording/blanking CDs/DVDs and genisoimage for ISO"
     1.8 +SHORT_DESC="A collection of CD/DVD utilities"
     1.9  MAINTAINER="devel@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11 -WEB_SITE="http://www.cdrkit.org/"
    1.12 +WEB_SITE="http://www.cdrkit.org/" # website is empty
    1.13  
    1.14  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 -WGET_URL="http://cdrkit.org/releases/$TARBALL"
    1.16 +#WGET_URL="http://cdrkit.org/releases/$TARBALL" # website is empty
    1.17 +WGET_URL="https://dev.alpinelinux.org/archive/cdrkit/$TARBALL"
    1.18 +TARBALL_SHA1="3f7ddc06db0272942e1a4cd98c3c96462df77387"
    1.19 +
    1.20  EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch"
    1.21  
    1.22 -BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev"
    1.23 +BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev libzstd"
    1.24  SPLIT="$PACKAGE-audio $PACKAGE-isoinfo readom"
    1.25  
    1.26 +COPY_std="genisoimage wodim cdrecord mkisofs mkhybrid"
    1.27 +COPY_audio="cdda2mp3 cdda2ogg cdda2wav icedax pitchplay"
    1.28 +COPY_isoinfo="isoinfo"
    1.29 +COPY_readom="readom readcd"
    1.30 +
    1.31 +CAT_audio="multimedia|extracting audio files"
    1.32 +CAT_isoinfo="multimedia|work with iso9660 images"
    1.33 +CAT_readom="utilities|for use with graveman"
    1.34 +
    1.35 +DEPENDS_std="libcap zlib libbzip2 attr"
    1.36 +
    1.37  compile_rules() {
    1.38 -	sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \
    1.39 -		genisoimage/CMakeLists.txt
    1.40 -	[ -s $SRC/cdrkit-1.1.9-efi-boot.patch ] ||
    1.41 -		wget -P $SRC https://github.com/NixOS/nixpkgs/raw/master/pkgs/tools/cd-dvd/cdrkit/cdrkit-1.1.9-efi-boot.patch
    1.42 -	patch -p1 < $SRC/cdrkit-1.1.9-efi-boot.patch
    1.43 +	LDFLAGS="$LDFLAGS -Wno-dev" # mute cmake developer warnings
    1.44 +	sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' genisoimage/CMakeLists.txt
    1.45  
    1.46  	make PREFIX=/usr &&
    1.47 -	make PREFIX=/usr install
    1.48 +	make PREFIX=/usr install || return 1
    1.49 +
    1.50 +	# make symlinks for cdrtools compatibility
    1.51 +	cd $install/usr/bin
    1.52 +	ln -s genisoimage   mkhybrid
    1.53 +	ln -s genisoimage   mkisofs
    1.54 +	ln -s icedax        cdda2wav
    1.55 +	ln -s readom        readcd
    1.56 +	ln -s wodim         cdrecord
    1.57 +	cd $install/usr/share/man/man1
    1.58 +	ln -s genisoimage.1 mkhybrid.1
    1.59 +	ln -s genisoimage.1 mkisofs.1
    1.60 +	ln -s icedax.1      cdda2wav.1
    1.61 +	ln -s readom.1      readcd.1
    1.62 +	ln -s wodim.1       cdrecord.1
    1.63  }
    1.64 -
    1.65 -genpkg_rules() {
    1.66 -	case $PACKAGE in
    1.67 -		cdrkit)
    1.68 -			DEPENDS="libcap zlib libbzip2 attr"
    1.69 -			mkdir -p $fs/usr/bin
    1.70 -			cp $install/usr/bin/genisoimage $fs/usr/bin
    1.71 -			cp $install/usr/bin/wodim $fs/usr/bin
    1.72 -			# Make symlinks for cdrtools compatibility
    1.73 -			cd $fs/usr/bin
    1.74 -			ln -s wodim cdrecord
    1.75 -			ln -s genisoimage mkisofs
    1.76 -			ln -s genisoimage mkhybrid
    1.77 -			;;
    1.78 -		cdrkit-audio)
    1.79 -			CAT="multimedia|Icedax, cdda2ogg and other tools for extracting audio files."
    1.80 -			mkdir -p $fs/usr/bin
    1.81 -			cp -a $install/usr/bin/cdda* $fs/usr/bin
    1.82 -			cp $install/usr/bin/icedax $fs/usr/bin
    1.83 -			cp $install/usr/bin/pitchplay $fs/usr/bin
    1.84 -			# Make symlinks for cdrtools compatibility
    1.85 -			cd $fs/usr/bin
    1.86 -			ln -s icedax cdda2wav 
    1.87 -			;;
    1.88 -		cdrkit-isoinfo)
    1.89 -			CAT="multimedia|Isoinfo Utility programs for iso9660 images"
    1.90 -			mkdir -p $fs/usr/bin
    1.91 -			cp -a $install/usr/bin/isoinfo $fs/usr/bin	
    1.92 -			;;
    1.93 -		readom)
    1.94 -			CAT="utilities|readom as readcd for use with graveman"
    1.95 -			mkdir -p $fs/usr/bin
    1.96 -			cp $install/usr/bin/readom $fs/usr/bin
    1.97 -
    1.98 -			# Make symlinks for cdrtools compatibility
    1.99 -			cd $fs/usr/bin
   1.100 -			ln -s readom readcd
   1.101 -			;;
   1.102 -	esac
   1.103 -}