# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=libmusicbrainz pkgver=5.1.0 pkgrel=2 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=None \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ $CMAKE_CROSSOPTS . make } package() { make DESTDIR="$pkgdir" install } sha512sums="daa7ccb94e517e90f7d88a0659c84b00f04c6a73ef7771b7e3bd9101fa6569b1935a68a3689502ed0cc8c0d71ba9d2d0ebd9c074dd5eed9f75a3db390b222e03 libmusicbrainz-5.1.0.tar.gz"