summaryrefslogtreecommitdiff
path: root/extra/libmusicbrainz5/PKGBUILD
blob: 70cd0695ca25740231ab3b77ab145961326e23be (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 161787 2012-06-14 09:28:16Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=libmusicbrainz5
pkgver=5.0.1
pkgrel=1
pkgdesc="Library That Provides Access to the MusicBrainz Server"
arch=('i686' 'x86_64' 'mips64el')
url="http://musicbrainz.org/"
license=('LGPL2.1')
depends=('neon')
makedepends=('cmake')
source=("https://github.com/downloads/metabrainz/libmusicbrainz/libmusicbrainz-$pkgver.tar.gz"
        'support-out-of-source-build.patch')
md5sums=('a0406b94c341c2b52ec0fe98f57cadf3'
         '78348e0c9a0864c7be2dcced5aab6d38')

build() {
  cd "${srcdir}"/libmusicbrainz-${pkgver}
  patch -p1 -i "${srcdir}"/support-out-of-source-build.patch

  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../libmusicbrainz-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

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