wok-current view cdrtools/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 076f424196b2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cdrtools"
4 VERSION="3.02a09"
5 CATEGORY="multimedia"
6 SHORT_DESC="Command line programs to record CD/DVD/BluRay media."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 WEB_SITE="https://cdrtools.sourceforge.net/private/cdrecord.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 CONFIG_FILES="/etc/default/cdrecord /etc/default/rscsi"
15 DEPENDS=""
16 BUILD_DEPENDS="acl-dev libcap-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/cdrtools/files/alpha/ 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;s|.*/cdrtools-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|uname -m|echo i686|' RULES/*
29 sed -i 's/DEFINSGRP=.*/DEFINSGRP=root/' DEFAULTS/Defaults.linux
30 {
31 ./configure
32 make -j 1 &&
33 make -j 1 DESTDIR=$DESTDIR install
34 } 2>&1 | sed 's/: No such/: no such/'
36 mkdir -p $install/usr
37 mv $install/opt/schily/* $install/usr
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs/usr/share
44 cp -a $install/etc $fs
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/sbin $fs/usr
47 cp -a $install/usr/lib/siconv $fs/usr/lib
48 cp -a $install/usr/share/doc $fs/usr/share
49 }