summaryrefslogtreecommitdiff
path: root/libre/cdrkit-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/cdrkit-libre/PKGBUILD')
-rw-r--r--libre/cdrkit-libre/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/libre/cdrkit-libre/PKGBUILD b/libre/cdrkit-libre/PKGBUILD
new file mode 100644
index 000000000..a598a15f6
--- /dev/null
+++ b/libre/cdrkit-libre/PKGBUILD
@@ -0,0 +1,59 @@
+# $Id: PKGBUILD 186761 2013-05-31 04:50:41Z allan $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+_pkgname=cdrkit
+pkgname=cdrkit-libre
+pkgver=1.1.11
+pkgrel=3.2
+pkgdesc="Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction, without nonfree apple_driver utility"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://cdrkit.org/"
+license=('GPL2')
+provides=("cdrkit=${pkgver}" 'cdrtools')
+conflicts=('cdrkit' 'cdrtools')
+replaces=('cdrkit' 'cdrtools')
+depends=('file' 'bzip2')
+optdepends=('perl: for dirsplit')
+makedepends=('cmake')
+mksource=(http://cdrkit.org/releases/$_pkgname-$pkgver.tar.gz)
+source=(https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz)
+mkmd5sums=('efe08e2f3ca478486037b053acd512e9')
+md5sums=('SKIP')
+
+mksource() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ # Remove nonfree apple_driver utility
+ rm -rvf {doc/genisoimage/README.hfs_boot,genisoimage/apple_driver.{8,c}}
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ sed -i "s#sbin#bin#" netscsid/CMakeLists.txt
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make PREFIX="$pkgdir/usr" install
+
+ # Make symlinks for cdrtools compatibility
+ cd "$pkgdir/usr/bin"
+ ln -s wodim cdrecord
+ ln -s readom readcd
+ ln -s genisoimage mkisofs
+ ln -s genisoimage mkhybrid
+ ln -s icedax cdda2wav
+
+ cd "$pkgdir/usr/share/man/man1"
+ ln -s wodim.1 cdrecord.1
+ ln -s readom.1 readcd.1
+ ln -s genisoimage.1 mkisofs.1
+ ln -s genisoimage.1 mkhybrid.1
+ ln -s icedax.1 cdda2wav.1
+}