From f9266de25e2bee08b9fea979f0e7259ce07be470 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Sat, 14 Jun 2025 04:40:09 +0200
Subject: utau/openutau: remove strip, change some other things

---
 src/utau/openutau/APKBUILD | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/utau/openutau/APKBUILD b/src/utau/openutau/APKBUILD
index 7431c44..8127679 100644
--- a/src/utau/openutau/APKBUILD
+++ b/src/utau/openutau/APKBUILD
@@ -14,18 +14,18 @@ url="https://www.openutau.com/"
 arch="x86_64"
 license="MIT"
 
-# ld-linux-x86-64.so.2 is provided by gcompat
+# so:ld-linux-x86-64.so.2 is provided by gcompat
 # so:libfontconfig.so.1 is provided by fontconfig
 depends="dotnet8-runtime so:ld-linux-x86-64.so.2 so:libfontconfig.so.1"
 
-# Docs say to use .NET 6, but thats testing repos only
+# Docs say to use .NET 6, but thats testing repos only.
 # Bazel 8 and 9 remove required features for worldline for some reason.
 makedepends="dotnet8-sdk musl-dev zsh bazel7@testing linux-headers"
 
 install=""
 subpackages=""
 
-options="net !check" # network needed for dotnet restore, no check due to laziness for now
+options="net !check !strip" # network needed for dotnet restore, no check due to laziness for now, dotnet dies with strip
 
 # for when we're building off of a commit
 if [[ "${pkgver}" != "${_reporef}" ]] && [[ "${pkgver}" != "v${_reporef}" ]]; then pkgver="${pkgver}_git${_reporefdate}"; fi
@@ -53,17 +53,21 @@ build() {
 
 package() {
   _outdir="${builddir}/OpenUtau/bin/${_buildtarget}"
-  
+
   # Install the main binary
+  mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/lib/openutau"
   install -Dm755 "${_outdir}/OpenUtau" "${pkgdir}/usr/lib/openutau/OpenUtau"
-  mkdir -p "${pkgdir}/usr/bin"
   ln -s "../lib/openutau/OpenUtau" "${pkgdir}/usr/bin/openutau"
 
   # Install dependencies
   # TODO: somehow split these into different packages
+  mkdir -p "${pkgdir}/usr/lib/openutau"
   install -Dm755 "${_outdir}/libHarfBuzzSharp.so" "${pkgdir}/usr/lib/openutau/libHarfBuzzSharp.so"
   install -Dm755 "${_outdir}/libSkiaSharp.so" "${pkgdir}/usr/lib/openutau/libSkiaSharp.so"
 
+  # when debugging:
+  # tar caf "${pkgdir}/usr/lib/openutau/all.tar.gz" --directory="${_outdir}" .
+
   # Install desktop icons
 	install -Dm755 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
 	install -Dm644 "${srcdir}/${pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
-- 
cgit v1.2.3