From f19d525d0cc7d6440aa330cede78e71cddccca0f Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Wed, 22 May 2024 21:26:14 +0200 Subject: [PATCH] testing/libdjinterop: new aport --- testing/libdjinterop/0001-Fix-build.patch | 16 +++++++++ testing/libdjinterop/APKBUILD | 43 +++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 testing/libdjinterop/0001-Fix-build.patch create mode 100644 testing/libdjinterop/APKBUILD diff --git a/testing/libdjinterop/0001-Fix-build.patch b/testing/libdjinterop/0001-Fix-build.patch new file mode 100644 index 00000000000..c939999bc6e --- /dev/null +++ b/testing/libdjinterop/0001-Fix-build.patch @@ -0,0 +1,16 @@ +Upstream: https://github.com/xsco/libdjinterop/pull/122 + +--- + +diff --git a/src/djinterop/impl/database_impl.hpp b/src/djinterop/impl/database_impl.hpp +index 91cf031..cd66e26 100644 +--- a/src/djinterop/impl/database_impl.hpp ++++ b/src/djinterop/impl/database_impl.hpp +@@ -17,6 +17,7 @@ + + #pragma once + ++#include + #include + #include + diff --git a/testing/libdjinterop/APKBUILD b/testing/libdjinterop/APKBUILD new file mode 100644 index 00000000000..1a6033d833c --- /dev/null +++ b/testing/libdjinterop/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Bart Ribbers +# Maintainer: fossdd +pkgname=libdjinterop +pkgver=0.20.2 # This needs to be the exact version testing/mixxx expects +pkgrel=0 +pkgdesc="C++ library for access to DJ record libraries" +url="https://github.com/xsco/libdjinterop" +arch="all" +license="LGPL-3.0-only" +depends_dev=" + sqlite-dev + zlib-dev + " +makedepends="$depends_dev + cmake + samurai + " +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/xsco/libdjinterop/archive/refs/tags/$pkgver.tar.gz + 0001-Fix-build.patch + " + +build() { + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON + cmake --build build +} + +check() { + ctest --test-dir build --output-on-failure +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +591cbf8102e16b11337ec25ad90ef035bf65dbbd18591802d959044874f36bb61bce3d5db974b00ecee14b45c7ea2488542b226d823d9087c92a0b452d804ff3 libdjinterop-0.20.2.tar.gz +092aee79d8ef027d5011bee71af759706ea09f567897fd34a96aa147c418693398b720689e0e2047fa484d33db8bfdc8c41481567b6ac8d1b397d69ddf1add0e 0001-Fix-build.patch +"