From d34006ffa37df6602c1ac1123a74ccd9ef16b8b9 Mon Sep 17 00:00:00 2001 From: itmodulo Date: Sun, 29 Jun 2025 18:12:10 +0200 Subject: [PATCH] add darktable --- .gitea/workflows/release_arm64v8-edge.yml | 1 + .../release_arm64v8.yml | 0 edge/darktable/APKBUILD | 78 +++++++++++++++++++ .../disable-missing-musl-simd-symbol.patch | 33 ++++++++ 4 files changed, 112 insertions(+) rename {.gitea/workflows => archived}/release_arm64v8.yml (100%) create mode 100755 edge/darktable/APKBUILD create mode 100755 edge/darktable/disable-missing-musl-simd-symbol.patch diff --git a/.gitea/workflows/release_arm64v8-edge.yml b/.gitea/workflows/release_arm64v8-edge.yml index b3bc1f0..75ce368 100755 --- a/.gitea/workflows/release_arm64v8-edge.yml +++ b/.gitea/workflows/release_arm64v8-edge.yml @@ -14,6 +14,7 @@ jobs: run: | echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/main" > /etc/apk/repositories echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/community" >> /etc/apk/repositories + echo "https://alpine.sakamoto.pl/alpine/$(cat /etc/os-release | grep PRETT | cut -d ' ' -f 3 | cut -d '"' -f 1)/testing" >> /etc/apk/repositories apk -U upgrade apk add bash git wget curl nodejs sshfs alpine-sdk abuild sudo shadow - name: Checkout diff --git a/.gitea/workflows/release_arm64v8.yml b/archived/release_arm64v8.yml similarity index 100% rename from .gitea/workflows/release_arm64v8.yml rename to archived/release_arm64v8.yml diff --git a/edge/darktable/APKBUILD b/edge/darktable/APKBUILD new file mode 100755 index 0000000..810c09b --- /dev/null +++ b/edge/darktable/APKBUILD @@ -0,0 +1,78 @@ +# Contributor: Kevin Daudt +# Maintainer: Kevin Daudt +pkgname=darktable +pkgver=5.0.1 +pkgrel=1 +pkgdesc="Open source photography workflow application and raw developer" +url="https://www.darktable.org/" +arch="all -ppc64le" +license="GPL-3.0-or-later" +depends="dbus:org.freedesktop.Secrets" +makedepends=" + bash + cmake + colord-dev + colord-gtk-dev + cups-dev + curl-dev + exiv2-dev + gtk+3.0-dev + intltool + libjpeg-turbo-dev + json-glib-dev + lcms2-dev + lensfun-dev + flickcurl-dev + libgphoto2-dev + libheif-dev + libjxl-dev + librsvg-dev + libsecret-dev + libwebp-dev + libxml2-dev + libxml2-utils + libxslt + lua5.4-dev + samurai + openexr-dev + openjpeg-dev + pugixml-dev + sqlite-dev + tiff-dev + sdl2-dev + graphicsmagick-dev + gmic-dev + portmidi-dev + iso-codes-dev + " +ldpath="/usr/lib/$pkgname" +subpackages="$pkgname-dbg $pkgname-doc $pkgname-lang" +options="!check" # Dependencies missing +source="https://github.com/darktable-org/darktable/releases/download/release-$pkgver/darktable-$pkgver.tar.xz + disable-missing-musl-simd-symbol.patch +" + +build() { + local cmake_crossopts + if [ "$CBUILD" != "$CHOST" ]; then + cmake_crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DBINARY_PACKAGE_BUILD=ON \ + -DRAWSPEED_ENABLE_LTO=ON \ + $cmake_crossopts + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +ce1550221f8806979e073be61f2e96e7fa20b38f37a673868f938e94e37000da8f27c7dd8de04b94635d2252a4d991481f7c8a9af2182285032fb52e6cf25c53 darktable-5.0.1.tar.xz +3664a32419de25c266731a208f941fc33be021e66c419de90979b66c2b66a11585082cccb6b2fadf7a4c1616c8b2f4b21c84572c6c3ff0101369b4df4144592a disable-missing-musl-simd-symbol.patch +" diff --git a/edge/darktable/disable-missing-musl-simd-symbol.patch b/edge/darktable/disable-missing-musl-simd-symbol.patch new file mode 100755 index 0000000..bb2fbd2 --- /dev/null +++ b/edge/darktable/disable-missing-musl-simd-symbol.patch @@ -0,0 +1,33 @@ +diff --git a/src/develop/openmp_maths.h b/src/develop/openmp_maths.h +index a3d466b..0428431 100644 +--- a/src/develop/openmp_maths.h ++++ b/src/develop/openmp_maths.h +@@ -38,7 +38,7 @@ extern float fminf(const float x, const float y); + DT_OMP_DECLARE_SIMD() + extern float fabsf(const float x); + +-DT_OMP_DECLARE_SIMD() ++//DT_OMP_DECLARE_SIMD() + extern float powf(const float x, const float y); + + DT_OMP_DECLARE_SIMD() +@@ -47,16 +47,16 @@ extern float sqrtf(const float x); + DT_OMP_DECLARE_SIMD() + extern float cbrtf(const float x); + +-DT_OMP_DECLARE_SIMD() ++//DT_OMP_DECLARE_SIMD() + extern float log2f(const float x); + +-DT_OMP_DECLARE_SIMD() ++//DT_OMP_DECLARE_SIMD() + extern float exp2f(const float x); + + DT_OMP_DECLARE_SIMD() + extern float log10f(const float x); + +-DT_OMP_DECLARE_SIMD() ++//DT_OMP_DECLARE_SIMD() + extern float expf(const float x); + + DT_OMP_DECLARE_SIMD()