wok-next view cdrkit/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | d43bf7aae921 |
children | 82b613cfd1e0 |
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="devel@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="$PACKAGE-audio $PACKAGE-isoinfo readom"
18 compile_rules() {
19 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \
20 genisoimage/CMakeLists.txt
21 [ -s $SRC/cdrkit-1.1.9-efi-boot.patch ] ||
22 wget -P $SRC https://github.com/NixOS/nixpkgs/raw/master/pkgs/tools/cd-dvd/cdrkit/cdrkit-1.1.9-efi-boot.patch
23 patch -p1 < $SRC/cdrkit-1.1.9-efi-boot.patch
25 make PREFIX=/usr &&
26 make PREFIX=/usr install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 cdrkit)
32 DEPENDS="libcap zlib bzlib attr"
33 mkdir -p $fs/usr/bin
34 cp $install/usr/bin/genisoimage $fs/usr/bin
35 cp $install/usr/bin/wodim $fs/usr/bin
36 # Make symlinks for cdrtools compatibility
37 cd $fs/usr/bin
38 ln -s wodim cdrecord
39 ln -s genisoimage mkisofs
40 ln -s genisoimage mkhybrid
41 ;;
42 cdrkit-audio)
43 CAT="multimedia|Icedax, cdda2ogg and other tools for extracting audio files."
44 mkdir -p $fs/usr/bin
45 cp -a $install/usr/bin/cdda* $fs/usr/bin
46 cp $install/usr/bin/icedax $fs/usr/bin
47 cp $install/usr/bin/pitchplay $fs/usr/bin
48 # Make symlinks for cdrtools compatibility
49 cd $fs/usr/bin
50 ln -s icedax cdda2wav
51 ;;
52 cdrkit-isoinfo)
53 CAT="multimedia|Isoinfo Utility programs for iso9660 images"
54 mkdir -p $fs/usr/bin
55 cp -a $install/usr/bin/isoinfo $fs/usr/bin
56 ;;
57 readom)
58 CAT="utilities|readom as readcd for use with graveman"
59 mkdir -p $fs/usr/bin
60 cp $install/usr/bin/readom $fs/usr/bin
62 # Make symlinks for cdrtools compatibility
63 cd $fs/usr/bin
64 ln -s readom readcd
65 ;;
66 esac
67 }