wok-next annotate 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 |
rev | line source |
---|---|
pascal@20160 | 1 # SliTaz package receipt v2. |
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" |
al@19601 | 9 WEB_SITE="http://www.cdrkit.org/" |
al@19601 | 10 |
pankso@39 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@39 | 12 WGET_URL="http://cdrkit.org/releases/$TARBALL" |
pascal@19418 | 13 EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch" |
pankso@39 | 14 |
pankso@9755 | 15 BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev" |
pascal@20160 | 16 SPLIT="cdrkit cdrkit-audio cdrkit-isoinfo readom" |
pankso@9755 | 17 |
pankso@39 | 18 # Rules to configure and make the package. |
pankso@39 | 19 compile_rules() |
pankso@39 | 20 { |
pascal@4462 | 21 sed -i -e '/USE_MAGIC/d' -e '/(MAGICLIBS magic)/d' \ |
pascal@4462 | 22 genisoimage/CMakeLists.txt |
pascal@19418 | 23 [ -s $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch ] || |
pascal@19418 | 24 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 | 25 patch -p1 < $SOURCES_REPOSITORY/cdrkit-1.1.9-efi-boot.patch |
pankso@9755 | 26 make PREFIX=/usr && make install PREFIX=/usr |
pankso@39 | 27 } |
pankso@39 | 28 |
pankso@39 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@39 | 30 genpkg_rules() |
pankso@39 | 31 { |
pascal@20160 | 32 case $PACKAGE in |
pascal@20160 | 33 cdrkit) |
pascal@20160 | 34 DEPENDS="libcap zlib bzlib attr" |
pascal@20160 | 35 mkdir -p $fs/usr/bin |
pascal@20160 | 36 cp $install/usr/bin/genisoimage $fs/usr/bin |
pascal@20160 | 37 cp $install/usr/bin/wodim $fs/usr/bin |
pascal@20160 | 38 # Make symlinks for cdrtools compatibility |
pascal@20160 | 39 cd $fs/usr/bin |
pascal@20160 | 40 ln -s wodim cdrecord |
pascal@20160 | 41 ln -s genisoimage mkisofs |
pascal@20160 | 42 ln -s genisoimage mkhybrid |
pascal@20160 | 43 ;; |
pascal@20160 | 44 cdrkit-audio) |
pascal@20160 | 45 CAT="multimedia|Icedax, cdda2ogg and other tools for extracting audio files." |
pascal@20160 | 46 mkdir -p $fs/usr/bin |
pascal@20160 | 47 cp -a $install/usr/bin/cdda* $fs/usr/bin |
pascal@20160 | 48 cp $install/usr/bin/icedax $fs/usr/bin |
pascal@20160 | 49 cp $install/usr/bin/pitchplay $fs/usr/bin |
pascal@20160 | 50 # Make symlinks for cdrtools compatibility |
pascal@20160 | 51 cd $fs/usr/bin |
pascal@20160 | 52 ln -s icedax cdda2wav |
pascal@20160 | 53 ;; |
pascal@20160 | 54 cdrkit-isoinfo) |
pascal@20160 | 55 CAT="multimedia|Isoinfo Utility programs for iso9660 images" |
pascal@20160 | 56 mkdir -p $fs/usr/bin |
pascal@20160 | 57 cp -a $install/usr/bin/isoinfo $fs/usr/bin |
pascal@20160 | 58 ;; |
pascal@20160 | 59 readom) |
pascal@20160 | 60 CAT="utilities|readom as readcd for use with graveman" |
pascal@20160 | 61 mkdir -p $fs/usr/bin |
pascal@20160 | 62 cp $install/usr/bin/readom $fs/usr/bin |
pascal@20160 | 63 |
pascal@20160 | 64 # Make symlinks for cdrtools compatibility |
pascal@20160 | 65 cd $fs/usr/bin |
pascal@20160 | 66 ln -s readom readcd |
pascal@20160 | 67 ;; |
pascal@20160 | 68 esac |
pankso@39 | 69 } |