wok-next view cdrkit/receipt @ rev 20424

linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 12 17:02:57 2018 +0200 (2018-01-12)
parents 18c4d15a72df
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cdrkit"
4 VERSION="1.1.11"
5 CATEGORY="utilities"
6 SHORT_DESC="Wodim for recording/blanking CDs/DVDs and genisoimage for ISO."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.cdrkit.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://cdrkit.org/releases/$TARBALL"
13 EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch"
15 BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev"
16 SPLIT="cdrkit cdrkit-audio cdrkit-isoinfo readom"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \
22 genisoimage/CMakeLists.txt
23 [ -s $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch ] ||
24 wget -P $SOURCES_REPOSITORY https://github.com/NixOS/nixpkgs/raw/master/pkgs/tools/cd-dvd/cdrkit/cdrkit-1.1.9-efi-boot.patch
25 patch -p1 < $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch
26 make PREFIX=/usr && make install PREFIX=/usr
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 cdrkit)
34 DEPENDS="libcap zlib bzlib attr"
35 mkdir -p $fs/usr/bin
36 cp $install/usr/bin/genisoimage $fs/usr/bin
37 cp $install/usr/bin/wodim $fs/usr/bin
38 # Make symlinks for cdrtools compatibility
39 cd $fs/usr/bin
40 ln -s wodim cdrecord
41 ln -s genisoimage mkisofs
42 ln -s genisoimage mkhybrid
43 ;;
44 cdrkit-audio)
45 CAT="multimedia|Icedax, cdda2ogg and other tools for extracting audio files."
46 mkdir -p $fs/usr/bin
47 cp -a $install/usr/bin/cdda* $fs/usr/bin
48 cp $install/usr/bin/icedax $fs/usr/bin
49 cp $install/usr/bin/pitchplay $fs/usr/bin
50 # Make symlinks for cdrtools compatibility
51 cd $fs/usr/bin
52 ln -s icedax cdda2wav
53 ;;
54 cdrkit-isoinfo)
55 CAT="multimedia|Isoinfo Utility programs for iso9660 images"
56 mkdir -p $fs/usr/bin
57 cp -a $install/usr/bin/isoinfo $fs/usr/bin
58 ;;
59 readom)
60 CAT="utilities|readom as readcd for use with graveman"
61 mkdir -p $fs/usr/bin
62 cp $install/usr/bin/readom $fs/usr/bin
64 # Make symlinks for cdrtools compatibility
65 cd $fs/usr/bin
66 ln -s readom readcd
67 ;;
68 esac
69 }