diff options
Diffstat (limited to 'community/cdrtools')
-rw-r--r-- | community/cdrtools/PKGBUILD | 39 | ||||
-rw-r--r-- | community/cdrtools/cdrtools.install | 10 |
2 files changed, 49 insertions, 0 deletions
diff --git a/community/cdrtools/PKGBUILD b/community/cdrtools/PKGBUILD new file mode 100644 index 000000000..2885e3ca4 --- /dev/null +++ b/community/cdrtools/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 68902 2012-04-05 11:43:49Z stativ $ +# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> +pkgname=cdrtools +pkgver=3.01a07 +pkgrel=2 +pkgdesc="Original cdrtools supporting CD, DVD and BluRay burning" +arch=('i686' 'x86_64') +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=(ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-$pkgver.tar.gz) +md5sums=('b690d11ee6c9464b89d8684172807b51') + +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} + find "$pkgdir" -type d -perm 775 -exec chmod 755 '{}' ';' + find "$pkgdir" -type f -perm 4711 -exec chmod 755 '{}' ';' +} + +# vim:set ts=2 sw=2 et: diff --git a/community/cdrtools/cdrtools.install b/community/cdrtools/cdrtools.install new file mode 100644 index 000000000..af3800716 --- /dev/null +++ b/community/cdrtools/cdrtools.install @@ -0,0 +1,10 @@ + +post_install() { + echo "To allow other users than root execute rscsi add an entry" + echo "to /etc/default/rscsi or use an \"rscsi\" user" + echo "" + echo "If you get folowing error while executing \"cdrecord --scanbus\":" + echo " No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver." + echo "you may need to load the sg module manually using \"modprobe sg\"." +} + |