archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libmusicbrainz5 / trunk / PKGBUILD
blobff09f88be3802780f83fa6ece7f97bf4adb67b54
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=libmusicbrainz5
4 pkgver=5.1.0
5 pkgrel=4
6 pkgdesc="Library That Provides Access to the MusicBrainz Server"
7 arch=('x86_64')
8 url='https://musicbrainz.org/doc/libmusicbrainz'
9 license=('LGPL2.1')
10 depends=('neon' 'libxml2')
11 makedepends=('cmake')
12 source=("https://github.com/metabrainz/libmusicbrainz/releases/download/release-${pkgver}/libmusicbrainz-$pkgver.tar.gz"
13         16.patch)
14 sha256sums=('6749259e89bbb273f3f5ad7acdffb7c47a2cf8fcaeab4c4695484cef5f4c6b46'
15             '5ad7e45b191cceca3bb71c92adb6c767ae8079bf2814354341fae829d4328ae9')
17 prepare() {
18   cd libmusicbrainz-$pkgver
20   # https://github.com/metabrainz/libmusicbrainz/pull/16
21   patch -Np1 -i ../16.patch
24 build() {
25   CFLAGS+=" $CPPFLAGS"
26   CXXFLAGS+=" $CPPFLAGS"
27   cmake -Hlibmusicbrainz-$pkgver -Bbuild \
28     -DCMAKE_INSTALL_PREFIX=/usr \
29     -DCMAKE_BUILD_TYPE=None
30   cmake --build build
33 package() {
34   DESTDIR="$pkgdir" cmake --build build --target install