wok view cdrkit/receipt @ rev 19418
cdrkit: add efi boot support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 29 13:47:18 2016 +0200 (2016-09-29) |
parents | eb8067417980 |
children | fad95bff792d |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.cdrkit.org/"
11 WGET_URL="http://cdrkit.org/releases/$TARBALL"
12 EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch"
14 DEPENDS="libcap zlib bzlib attr"
15 BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \
21 genisoimage/CMakeLists.txt
22 [ -s $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch ] ||
23 wget -P $SOURCES_REPOSITORY https://github.com/NixOS/nixpkgs/raw/master/pkgs/tools/cd-dvd/cdrkit/cdrkit-1.1.9-efi-boot.patch
24 patch -p1 < $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch
25 make PREFIX=/usr && make install PREFIX=/usr
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin
32 cp $install/usr/bin/genisoimage $fs/usr/bin
33 cp $install/usr/bin/wodim $fs/usr/bin
34 # Make symlinks for cdrtools compatibility
35 cd $fs/usr/bin
36 ln -s wodim cdrecord
37 ln -s genisoimage mkisofs
38 ln -s genisoimage mkhybrid
39 }