summaryrefslogtreecommitdiff
path: root/community/cuetools/PKGBUILD
blob: 0b1d6dbb5c3b197b72a2d3de73a2e36caa76dcef (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
# $Id: PKGBUILD 25196 2010-09-02 15:17:46Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=cuetools
pkgver=1.3.1
pkgrel=4.1
pkgdesc="Set of utilities for working with cue files and toc files"
arch=('i686' 'x86_64' 'mips64el')
url="http://developer.berlios.de/projects/cuetools/"
license=('GPL')
depends=('glibc')
source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz \
        cuetag.patch)
md5sums=('45575f7a1bdc6615599fa6cb49845cca'
         '38969241a7b6ac88e2f1b46c3da0ecc2')

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

  # fix cuetag
  patch -Np0 < "$srcdir"/cuetag.patch
  sed -i -e 's/--import-vc-from/--import-tags-from/' \
    -e 's/--remove-vc-all/--remove-all-tags/' extras/cuetag.sh

  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

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

  make DESTDIR="$pkgdir" install
  install -m755 extras/cuetag.sh "$pkgdir"/usr/bin/cuetag.sh
}