From c42dbd1487167550110c0c45587e5a633fcfd606 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Mon, 23 Sep 2019 01:26:52 +0200 Subject: community/libmusicbrainz: move from testing --- community/libmusicbrainz/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 community/libmusicbrainz/APKBUILD (limited to 'community/libmusicbrainz') diff --git a/community/libmusicbrainz/APKBUILD b/community/libmusicbrainz/APKBUILD new file mode 100644 index 0000000000..e0232bd4a2 --- /dev/null +++ b/community/libmusicbrainz/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Rasmus Thomsen +# Maintainer: Rasmus Thomsen +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" -- cgit v1.2.3