summaryrefslogtreecommitdiff
path: root/community/libcuefile/PKGBUILD
blob: 9545dcee1984458373672979290a68024e583284 (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
# $Id: PKGBUILD 103016 2013-12-25 16:52:28Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>

pkgname=libcuefile
pkgver=475
pkgrel=2
pkgdesc="A library to work with CUE files"
arch=('i686' 'x86_64')
url="http://www.musepack.net/index.php?pg=src"
license=('GPL2')
depends=('glibc')
makedepends=('cmake')
source=(http://files.musepack.net/source/${pkgname}_r${pkgver}.tar.gz)
md5sums=('1a6ac52e1080fd54f0f59372345f1e4e')

build() {
  mkdir "${srcdir}/${pkgname}_r${pkgver}/build"
  cd "${srcdir}/${pkgname}_r${pkgver}/build"

  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd "${srcdir}/${pkgname}_r${pkgver}/build"
  make DESTDIR="${pkgdir}/" install

  mkdir -p "${pkgdir}/usr/include/cuetools"
  install -Dm644 "${srcdir}"/${pkgname}_r${pkgver}/include/cuetools/{cd,cdtext,cuefile}.h \
    "${pkgdir}/usr/include/cuetools"
}

# vim:set ts=2 sw=2 et: