# $Id: PKGBUILD 143646 2015-10-11 13:25:57Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=cuetools
pkgver=1.4.1
pkgrel=1
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')
optdepends=('id3v2: mp3 support in cuetag (does not require mutagen)'
            'mutagen: mp3 support in cuetag (does not require id3v2)')
source=("$pkgname-$pkgver.tar.gz::https://github.com/svend/cuetools/archive/${pkgver}.tar.gz")
md5sums=('b1f365fc7ab02eff4b58b6a54ecee080')

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

  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
}
