wok-6.x view cdrdao/receipt @ rev 25427

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