From ef3c538244870091b7a1b53bad46f831c13b7f73 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Sat, 14 Jun 2025 04:05:32 +0200
Subject: utau/openutau: consistent code style

---
 src/utau/openutau/APKBUILD | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

(limited to 'src/utau/openutau')

diff --git a/src/utau/openutau/APKBUILD b/src/utau/openutau/APKBUILD
index 4d14547..7431c44 100644
--- a/src/utau/openutau/APKBUILD
+++ b/src/utau/openutau/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: memdmp <memdmp@estrogen.zone>
 _reponame="OpenUtau"
 _repoowner="stakira"
-_repourl="https://github.com/$_repoowner/$_reponame"
+_repourl="https://github.com/${_repoowner}/${_reponame}"
 _reporef="c3ff44b01f5dcd0ef1bbdb5aa11ef1319cab3a03" # Must be a TAG OR BRANCH! Anything else may break shit.
 _reporefdate="20250610" # YYYYMMDD of the ref
 _buildtarget="Release" # or `Debug` for testing
@@ -28,7 +28,7 @@ subpackages=""
 options="net !check" # network needed for dotnet restore, no check due to laziness for now
 
 # for when we're building off of a commit
-if [[ "$pkgver" != "$_reporef" ]] && [[ "$pkgver" != "v$_reporef" ]]; then pkgver="${pkgver}_git${_reporefdate}"; fi
+if [[ "${pkgver}" != "${_reporef}" ]] && [[ "${pkgver}" != "v${_reporef}" ]]; then pkgver="${pkgver}_git${_reporefdate}"; fi
 
 source="${_reponame}-${_reporef}.tar.gz::${_repourl}/archive/${_reporef}.tar.gz
         build-worldline
@@ -37,36 +37,36 @@ source="${_reponame}-${_reporef}.tar.gz::${_repourl}/archive/${_reporef}.tar.gz
 builddir="${srcdir}/${_reponame}-${_reporef}"
 
 build() {
-  cd "$builddir"
+  cd "${builddir}"
   rm -rf runtimes/linux-*
 
   # Build worldline
   # TODO: consider packaging worldline seperately at some point
-  builddir="$builddir" CARCH="$CARCH" "${srcdir}/build-worldline"
+  builddir="${builddir}" CARCH="${CARCH}" "${srcdir}/build-worldline"
 
   # Build openutau itself
   export DOTNET_CLI_TELEMETRY_OPTOUT=1
   # TODO: figure out how to move dotnet shit into a snapshot()
   dotnet restore --locked-mode --use-current-runtime --disable-build-servers --locked-mode OpenUtau
-  dotnet publish OpenUtau --use-current-runtime --no-restore --no-self-contained --disable-build-servers "-p:PublishSingleFile=true;StaticExecutable=true" -c "$_buildtarget" -o "$builddir/OpenUtau/bin/${_buildtarget}"
+  dotnet publish OpenUtau --use-current-runtime --no-restore --no-self-contained --disable-build-servers "-p:PublishSingleFile=true;StaticExecutable=true" -c "${_buildtarget}" -o "${builddir}/OpenUtau/bin/${_buildtarget}"
 }
 
 package() {
-  _outdir="$builddir/OpenUtau/bin/${_buildtarget}"
+  _outdir="${builddir}/OpenUtau/bin/${_buildtarget}"
   
   # Install the main binary
-  install -Dm755 "$_outdir/OpenUtau" "$pkgdir/usr/lib/openutau/OpenUtau"
-  mkdir -p "$pkgdir/usr/bin"
-  ln -s "../lib/openutau/OpenUtau" "$pkgdir/usr/bin/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
-  install -Dm755 "$_outdir/libHarfBuzzSharp.so" "$pkgdir/usr/lib/openutau/libHarfBuzzSharp.so"
-  install -Dm755 "$_outdir/libSkiaSharp.so" "$pkgdir/usr/lib/openutau/libSkiaSharp.so"
+  install -Dm755 "${_outdir}/libHarfBuzzSharp.so" "${pkgdir}/usr/lib/openutau/libHarfBuzzSharp.so"
+  install -Dm755 "${_outdir}/libSkiaSharp.so" "${pkgdir}/usr/lib/openutau/libSkiaSharp.so"
 
   # 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"
+	install -Dm644 "${srcdir}/${pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
 }
 
 sha512sums="
-- 
cgit v1.2.3