# SliTaz package receipt.

PACKAGE="cdrtools"
VERSION="3.00"
CATEGORY="multimedia"
SHORT_DESC="Command line programs to record CD/DVD/BluRay media."
MAINTAINER="paul@slitaz.org"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://cdrecord.berlios.de/private/cdrecord.html"
WGET_URL="ftp://ftp.berlios.de/pub/cdrecord/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	# hack makefile
	cd $src/DEFAULTS
	sed -i 's/DEFINSGRP=	bin/DEFINSGRP=	root/' Defaults.linux
	cd ..
	./configure
	make && make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib $fs/usr/share
	cp -a $_pkg/etc $fs
	cp -a $_pkg/opt/schily/bin $fs/usr
	cp -a $_pkg/opt/schily/sbin $fs/usr
	cp -a $_pkg/opt/schily/lib/siconv $fs/usr/lib
	cp -a $_pkg/opt/schily/share/doc $fs/usr/share
}