# SliTaz package receipt. PACKAGE="cdrtools" VERSION="3.02a09" CATEGORY="multimedia" SHORT_DESC="Command line programs to record CD/DVD/BluRay media." MAINTAINER="paul@slitaz.org" LICENSE="GPL2 LGPL2.1" WEB_SITE="https://cdrtools.sourceforge.net/private/cdrecord.html" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" CONFIG_FILES="/etc/default/cdrecord /etc/default/rscsi" DEPENDS="" BUILD_DEPENDS="acl-dev libcap-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/cdrtools/files/alpha/ 2>/dev/null | \ sed '/scope="row/!d;/tar/!d;s|.*/cdrtools-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|uname -m|echo i686|' RULES/* sed -i 's/DEFINSGRP=.*/DEFINSGRP=root/' DEFAULTS/Defaults.linux { ./configure make -j 1 && make -j 1 DESTDIR=$DESTDIR install } 2>&1 | sed 's/: No such/: no such/' mkdir -p $install/usr mv $install/opt/schily/* $install/usr } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/share cp -a $install/etc $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/siconv $fs/usr/lib cp -a $install/usr/share/doc $fs/usr/share }