blob: e0232bd4a2ee9a8773f097c4c35a3306fa08553f (
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
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libmusicbrainz
pkgver=5.1.0
pkgrel=0
pkgdesc="MusicBrainz Client Library"
url="https://musicbrainz.org/doc/libmusicbrainz"
arch="all"
license="LGPL-2.1-or-later"
makedepends="cmake neon-dev libxml2-dev"
options="!check" # no tests
subpackages="$pkgname-dev"
source="https://github.com/metabrainz/libmusicbrainz/releases/download/release-${pkgver}/libmusicbrainz-${pkgver}.tar.gz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} .
make
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="daa7ccb94e517e90f7d88a0659c84b00f04c6a73ef7771b7e3bd9101fa6569b1935a68a3689502ed0cc8c0d71ba9d2d0ebd9c074dd5eed9f75a3db390b222e03 libmusicbrainz-5.1.0.tar.gz"
|