wok view cdrkit/receipt @ rev 24990
idesk: imlib2 >= 1.7.5 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 13 20:03:04 2022 +0000 (2022-05-13) |
parents | 3e2a0347b2f1 |
children |
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="https://web.archive.org/web/20140714024716/http://www.cdrkit.org/"
11 WGET_URL="https://github.com/Distrotech/cdrkit/archive/refs/tags/release_$VERSION.tar.gz"
12 EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch"
13 DEPENDS="libcap zlib bzlib attr"
14 BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev"
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/released/!d;s|Cdrkit ||;s| has.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \
26 genisoimage/CMakeLists.txt
27 [ -s $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch ] ||
28 wget -P $SOURCES_REPOSITORY https://github.com/NixOS/nixpkgs/raw/master/pkgs/tools/cd-dvd/cdrkit/cdrkit-1.1.9-efi-boot.patch
29 patch -p1 < $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch
30 patch -p1 < $stuff/cdrkit-1.1.9-sort-catalog.patch
31 make PREFIX=/usr && make install PREFIX=/usr
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $install/usr/share/
38 cp $install/usr/bin/genisoimage $fs/usr/bin
39 cp $install/usr/bin/wodim $fs/usr/bin
40 # Make symlinks for cdrtools compatibility
41 cd $fs/usr/bin
42 ln -s wodim cdrecord
43 ln -s genisoimage mkisofs
44 ln -s genisoimage mkhybrid
45 cp -a $src/doc $install/usr/share
46 cp $src/FORK $src/FAQ $src/ABOUT $install/usr/share/doc
47 }