# $Id: PKGBUILD 80792 2012-12-03 18:56:26Z stativ $ # Maintainer: Lukas Jirkovsky pkgname=cdrtools pkgver=3.01a09 pkgrel=1 pkgdesc="Original cdrtools supporting CD, DVD and BluRay burning" arch=('i686' 'x86_64' 'mips64el') url="http://cdrecord.berlios.de/private/cdrecord.html" license=('CDDL') depends=('acl') conflicts=('cdrkit') provides=('cdrkit') options=(!makeflags) backup=('etc/default/cdrecord' 'etc/default/rscsi') install=cdrtools.install source=(http://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-$pkgver.tar.gz) md5sums=('8d9fed38ce2705d6d227da65bfd93d48') build() { cd "$srcdir"/cdrtools-${pkgver%%a*} sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux export GMAKE_NOWARN=true make INS_BASE=/usr INS_RBASE=/ } package() { cd "$srcdir"/cdrtools-${pkgver%%a*} export GMAKE_NOWARN=true make INS_BASE=/usr INS_RBASE=/ DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/include rm -rf "$pkgdir"/usr/lib/{*.a,profiled} # autoload 'sg' module needed by cdrecord install -d -m755 "$pkgdir"/usr/lib/modules-load.d/ echo sg > "$pkgdir"/usr/lib/modules-load.d/cdrecord.conf # create symlinks for cdrkit compatibility cd "$pkgdir"/usr/bin ln -s cdrecord wodim ln -s readcd readom ln -s mkisofs genisoimage ln -s cdda2wav icedax } # vim:set ts=2 sw=2 et: