wok annotate cdrdao/receipt @ rev 25359
updated tinyssh (20210601 -> 20220311)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 27 08:03:11 2022 +0100 (2022-07-27) |
parents | bfabe25c21ff |
children | 7dd01dedad38 |
rev | line source |
---|---|
jozee@2723 | 1 # SliTaz package receipt. |
jozee@2723 | 2 |
jozee@2723 | 3 PACKAGE="cdrdao" |
Hans-G?nter@20775 | 4 VERSION="1.2.4" |
jozee@2723 | 5 CATEGORY="multimedia" |
jozee@2723 | 6 SHORT_DESC="Records audio/data CD-Rs using toc files" |
jozee@2723 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@20775 | 9 WEB_SITE="http://cdrdao.sourceforge.net/" |
Hans-G?nter@20775 | 10 |
jozee@2723 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@20775 | 12 WGET_URL="https://downloads.sourceforge.net/$PACKAGE/$TARBALL" |
jozee@2723 | 13 |
pascal@15579 | 14 DEPENDS="gcc-lib-base lame libmad libvorbis libao" |
pascal@15579 | 15 BUILD_DEPENDS="lame-dev libmad-dev libvorbis-dev libao-dev libao libogg-dev" |
pascal@15579 | 16 |
pascal@24439 | 17 # What is the latest version available today? |
pascal@24439 | 18 current_version() |
pascal@24439 | 19 { |
pascal@24439 | 20 wget -O - https://sourceforge.net/projects//cdrdao/files/ 2>/dev/null | \ |
pascal@24440 | 21 sed '/scope="row/!d;/tar/!d;s|.*/cdrdao-||;s|.tar.*||;q' |
pascal@24439 | 22 } |
pascal@24439 | 23 |
jozee@2723 | 24 # Rules to configure and make the package. |
jozee@2723 | 25 compile_rules() |
jozee@2723 | 26 { |
pascal@4282 | 27 for i in trackdb/*.cc ; do |
pascal@4282 | 28 grep -q string.h $i && continue |
pascal@4282 | 29 grep -q util.h $i || continue |
pascal@4282 | 30 sed -i 's/"util.h"/&\n#include <string.h>/' $i |
pascal@4282 | 31 done |
pascal@4282 | 32 find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \ |
pascal@4282 | 33 -e 's/fexecve/fexec_ve/' scsilib/include/schily.h |
pascal@6113 | 34 grep -qs 'define u8' scsilib/libscg/scsi-linux-sg.c || |
pascal@6113 | 35 sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' \ |
pascal@6113 | 36 scsilib/libscg/scsi-linux-sg.c |
Hans-G?nter@20775 | 37 # patch -Np1 -i $stuff/$PACKAGE-$VERSION-stat.patch || return 1 |
Hans-G?nter@20775 | 38 |
Hans-G?nter@20775 | 39 ./configure \ |
Hans-G?nter@20775 | 40 --prefix=/usr \ |
Hans-G?nter@20775 | 41 --with-lame \ |
Hans-G?nter@20775 | 42 $CONFIGURE_ARGS && |
pascal@4282 | 43 make && |
slaxemulator@10288 | 44 make DESTDIR=$DESTDIR install |
jozee@2723 | 45 } |
jozee@2723 | 46 |
jozee@2723 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2723 | 48 genpkg_rules() |
jozee@2723 | 49 { |
jozee@2723 | 50 mkdir -p $fs/usr/bin |
pascal@15579 | 51 cp -a $install/usr/bin/cdrdao $fs/usr/bin |
pascal@15579 | 52 cp -a $install/usr/share $fs/usr |
jozee@2723 | 53 } |