summaryrefslogtreecommitdiff
path: root/community/cuetools/PKGBUILD
blob: c320597fcb2c116837aa645cba803222e88aacb0 (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
# $Id: PKGBUILD 103244 2013-12-31 11:13:25Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=cuetools
pkgver=1.4.0
pkgrel=2
pkgdesc="Cue and toc file parsers and utilities"
arch=('i686' 'x86_64')
url="https://github.com/svend/cuetools"
#url="http://developer.berlios.de/projects/cuetools/"
license=('GPL')
depends=('glibc')
source=("https://github.com/svend/cuetools/archive/${pkgver}.tar.gz"
        "cuetag-fix_spaces.diff" "fix_build_with_automake-1.12.diff")
md5sums=('4492dae2b3f9e077f6455a1f1cddef3b'
         '60f4aba26e529e48dbedd2adef917117'
         '67a3b32711d1a1f508be6ed0f1bdadf3')

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

  patch -Np1 < "$srcdir/fix_build_with_automake-1.12.diff" || true
  patch -Np1 < "$srcdir/cuetag-fix_spaces.diff" || true

  aclocal
  autoheader
  automake --force-missing --add-missing
  autoconf
}

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

  ./configure --prefix=/usr
  make
}

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

  make DESTDIR="$pkgdir" install
}