diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-09-23 01:26:52 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2019-09-23 01:29:48 +0200 |
commit | c42dbd1487167550110c0c45587e5a633fcfd606 (patch) | |
tree | cda3421d780c36c1c27cad6dd84bc98e6a1f4cf9 /community/libmusicbrainz | |
parent | cbf8c1feda7404080d9cac641d95bc300c0d20a5 (diff) | |
download | aports-c42dbd1487167550110c0c45587e5a633fcfd606.tar.bz2 aports-c42dbd1487167550110c0c45587e5a633fcfd606.tar.xz |
community/libmusicbrainz: move from testing
Diffstat (limited to 'community/libmusicbrainz')
-rw-r--r-- | community/libmusicbrainz/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
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 <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" |