summaryrefslogtreecommitdiffstats
path: root/abs/not_built/core/cdrkit/PKGBUILD
blob: 3b0d09954071078dede2cc1006e0d462876452a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 62750 2010-01-11 18:23:11Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>

pkgname=cdrkit
pkgver=1.1.10
pkgrel=1
pkgdesc="Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction"
arch=('i686' 'x86_64')
url="http://cdrkit.org/"
license=('GPL2')
depends=('file' 'bzip2' 'perl')
makedepends=('cmake')
provides=('cdrtools')
conflicts=('cdrtools')
source=(http://cdrkit.org/releases/$pkgname-$pkgver.tar.gz)
md5sums=('3c25505d567113c269dc6e71640646d8')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  make || return 1
}
package() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX="$pkgdir/usr" install || return 1

  # Make symlinks for cdrtools compatibility
  cd "$pkgdir/usr/bin"
  ln -s wodim cdrecord || return 1
  ln -s readom readcd || return 1
  ln -s genisoimage mkisofs || return 1
  ln -s genisoimage mkhybrid || return 1
  ln -s icedax cdda2wav || return 1

  cd "$pkgdir/usr/share/man/man1"
  ln -s wodim.1 cdrecord.1 || return 1
  ln -s readom.1 readcd.1 || return 1
  ln -s genisoimage.1 mkisofs.1 || return 1
  ln -s genisoimage.1 mkhybrid.1 || return 1
  ln -s icedax.1 cdda2wav.1 || return 1
}