wok annotate cdrkit/receipt @ rev 25238
updated python-singledispatch (3.4.0.3 -> 3.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 06:18:11 2022 +0100 (2022-07-14) |
parents | 3e2a0347b2f1 |
children |
rev | line source |
---|---|
pankso@39 | 1 # SliTaz package receipt. |
pankso@39 | 2 |
pankso@39 | 3 PACKAGE="cdrkit" |
pankso@6790 | 4 VERSION="1.1.11" |
pankso@201 | 5 CATEGORY="utilities" |
pankso@39 | 6 SHORT_DESC="Wodim for recording/blanking CDs/DVDs and genisoimage for ISO." |
pankso@39 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
pankso@39 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24074 | 10 WEB_SITE="https://web.archive.org/web/20140714024716/http://www.cdrkit.org/" |
pascal@24974 | 11 WGET_URL="https://github.com/Distrotech/cdrkit/archive/refs/tags/release_$VERSION.tar.gz" |
pascal@19418 | 12 EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch" |
pankso@9755 | 13 DEPENDS="libcap zlib bzlib attr" |
pankso@9755 | 14 BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev" |
pankso@9755 | 15 |
pascal@24074 | 16 current_version() |
pascal@24074 | 17 { |
pascal@24074 | 18 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24074 | 19 sed '/released/!d;s|Cdrkit ||;s| has.*||;q' |
pascal@24074 | 20 } |
pascal@24074 | 21 |
pankso@39 | 22 # Rules to configure and make the package. |
pankso@39 | 23 compile_rules() |
pankso@39 | 24 { |
pascal@4462 | 25 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \ |
pascal@4462 | 26 genisoimage/CMakeLists.txt |
pascal@19418 | 27 [ -s $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch ] || |
pascal@19418 | 28 wget -P $SOURCES_REPOSITORY https://github.com/NixOS/nixpkgs/raw/master/pkgs/tools/cd-dvd/cdrkit/cdrkit-1.1.9-efi-boot.patch |
pascal@19418 | 29 patch -p1 < $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch |
pascal@24005 | 30 patch -p1 < $stuff/cdrkit-1.1.9-sort-catalog.patch |
pankso@9755 | 31 make PREFIX=/usr && make install PREFIX=/usr |
pankso@39 | 32 } |
pankso@39 | 33 |
pankso@39 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@39 | 35 genpkg_rules() |
pankso@39 | 36 { |
pascal@19567 | 37 mkdir -p $fs/usr/bin $install/usr/share/ |
pascal@15579 | 38 cp $install/usr/bin/genisoimage $fs/usr/bin |
pascal@15579 | 39 cp $install/usr/bin/wodim $fs/usr/bin |
jozee@2801 | 40 # Make symlinks for cdrtools compatibility |
pankso@6790 | 41 cd $fs/usr/bin |
pankso@6790 | 42 ln -s wodim cdrecord |
pankso@6790 | 43 ln -s genisoimage mkisofs |
pankso@6790 | 44 ln -s genisoimage mkhybrid |
pascal@19567 | 45 cp -a $src/doc $install/usr/share |
pascal@19567 | 46 cp $src/FORK $src/FAQ $src/ABOUT $install/usr/share/doc |
pankso@39 | 47 } |