diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | build-repo | 40 | ||||
-rwxr-xr-x | push-to-codeberg | 17 | ||||
-rw-r--r-- | src/games/.rootbld-repositories | 2 | ||||
-rw-r--r-- | src/games/openttd-sse4/APKBUILD (renamed from src/memdmp/openttd-sse4/APKBUILD) | 4 | ||||
-rw-r--r-- | src/memdmp/airsonic-refix/APKBUILD | 43 | ||||
-rw-r--r-- | src/utau/openutau/APKBUILD | 2 |
7 files changed, 83 insertions, 28 deletions
@@ -1,4 +1,5 @@ /target /src/*/*/src /src/*/*/pkg -/codeberg-push-env +/src/*/.ignored +/codeberg-push-env
\ No newline at end of file @@ -10,29 +10,31 @@ set -eax ALL_TARGET="$PWD/target" export APORTSDIR="$PWD/src" for REPOPATH in ./src/*; do - cd "$REPOPATH"; - REPO="$(basename "$REPOPATH")"; - for PKG in ./*; do - if [[ -d "$PKG" ]] && [[ -f "$PKG/APKBUILD" ]]; then - cd "$PKG"; - PKG="$(basename "$PKG")"; + if ! [[ -f "$REPOPATH/.ignored" ]]; then + cd "$REPOPATH"; + REPO="$(basename "$REPOPATH")"; + for PKG in ./*; do + if [[ -d "$PKG" ]] && [[ -f "$PKG/APKBUILD" ]]; then + cd "$PKG"; + PKG="$(basename "$PKG")"; - if [[ "$FILTER" == "" ]] || [[ "$FILTER" == "$REPO" ]] || [[ "$FILTER" == "$PKG" ]] || [[ "$FILTER" == "$REPO/$PKG" ]]; then - if [[ "$IPV6_ONLY" == "true" ]] && [[ -f ".is_ipv4_only" ]]; then - echo -e "Skipping repository." - else - if [[ "$NEWSUM" == "1" ]]; then abuild checksum; fi - if [[ "$ROOTBLD" != "0" ]]; then - abuild -P "$ALL_TARGET" rootbld + if [[ "$FILTER" == "" ]] || [[ "$FILTER" == "$REPO" ]] || [[ "$FILTER" == "$PKG" ]] || [[ "$FILTER" == "$REPO/$PKG" ]]; then + if [[ "$IPV6_ONLY" == "true" ]] && [[ -f ".is_ipv4_only" ]]; then + echo -e "Skipping repository." else - abuild -r -P "$ALL_TARGET" + if [[ "$NEWSUM" == "1" ]]; then abuild checksum; fi + if [[ "$ROOTBLD" != "0" ]]; then + abuild -P "$ALL_TARGET" rootbld + else + abuild -r -P "$ALL_TARGET" + fi fi fi - fi - cd ..; - fi - done - cd ../..; + cd ..; + fi + done + cd ../..; + fi done diff --git a/push-to-codeberg b/push-to-codeberg index 54b06f5..4c6e28d 100755 --- a/push-to-codeberg +++ b/push-to-codeberg @@ -6,11 +6,16 @@ source ~/.config/codeberg-push-env ARCH="${CBUILD:-"${CARCH:-"x86_64"}"}" if [[ "$ARCH" != "x86_64" ]]; then echo "Non-x86_64 architectures are currently poorly handled by Codeberg."; exit 1; fi pushToRepo() { - curl -fLo- --user "$API_USER:$API_KEY" --upload-file target/"$1"/"${ARCH}"/"$2"-[0-9]*.*.*-r*.apk https://codeberg.org/api/packages/"${CODEBERG_PACKAGE_REPO_USER:-"dmpmem"}"/alpine/latest-stable/"$1" + FILE="$(eval 'ls target/"$1"/"${ARCH}"/"$2"-[0-9]*.*.*-r*.apk' 2>/dev/null || true)" + if [[ -f "$FILE" ]]; then + echo "[$1/$2]: Publishing..." + curl -fLo- --user "$API_USER:$API_KEY" --upload-file "$FILE" https://codeberg.org/api/packages/"${CODEBERG_PACKAGE_REPO_USER:-"dmpmem"}"/alpine/"${ALPINE_CHANNEL:-"latest-stable"}"/"$1" && echo "\x1b[1F\x1b[2K[$1/$2]: Published" + else + echo "[$1/$2]: WARN: No file, cannot publish" + fi } pushToRepo memdmp zsh-zuwu -if eval "file target/utau/${ARCH}/openutau-[0-9]*.*.*-r*.apk" >/dev/null 2>/dev/null; then - pushToRepo utau openutau - pushToRepo utau openutau-onnxruntime - pushToRepo utau openutau-worldline -fi +pushToRepo memdmp airsonic-refix +pushToRepo utau openutau +pushToRepo utau openutau-onnxruntime +pushToRepo utau openutau-worldline diff --git a/src/games/.rootbld-repositories b/src/games/.rootbld-repositories new file mode 100644 index 0000000..64d7ad2 --- /dev/null +++ b/src/games/.rootbld-repositories @@ -0,0 +1,2 @@ +$mirror/$version/main +$mirror/$version/community diff --git a/src/memdmp/openttd-sse4/APKBUILD b/src/games/openttd-sse4/APKBUILD index 92bd6e2..4e6525f 100644 --- a/src/memdmp/openttd-sse4/APKBUILD +++ b/src/games/openttd-sse4/APKBUILD @@ -20,7 +20,9 @@ makedepends=" libpng-dev lzo-dev samurai - sdl2-dev + sdl3 + sdl3-dev + sdl2-compat-dev xz-dev zlib-dev " diff --git a/src/memdmp/airsonic-refix/APKBUILD b/src/memdmp/airsonic-refix/APKBUILD new file mode 100644 index 0000000..c368d9f --- /dev/null +++ b/src/memdmp/airsonic-refix/APKBUILD @@ -0,0 +1,43 @@ +# Maintainer: memdmp <memdmp@estrogen.zone> +_reponame="airsonic-refix" +_repoowner="tamland" +_repourl="https://${GITHUB_CODELOAD_URL:-"codeload.github.com"}/${_repoowner}/${_reponame}" # GITHUB_CODELOAD_URL due to github not having IPv6. +_reporef="e1acdc486621a7f09ab4f26d6eb4c4c36a194c45" # Must be a TAG OR COMMIT! Anything else may break shit. +_reporefdate="20250620" # YYYYMMDD of the ref + +pkgname="airsonic-refix" +pkgver=0.0.0 +pkgrel=1 +pkgdesc="The Airsonic-Refix Subsonic Web UI" +url="https://github.com/tamland/airsonic-refix" +arch="noarch" +license="AGPL-3.0-or-later" +depends="" +makedepends="nodejs yarn findutils" +install="" +subpackages="" +source="${_reponame}-${_reporef}.tar.gz::${_repourl}/tar.gz/${_reporef}" +builddir="${srcdir}/${_reponame}-${_reporef}" +options="!check net" # no test suite + +_pkgver="${pkgver}" +if [[ "${pkgver}" != "${_reporef}" ]] && [[ "${pkgver}" != "v${_reporef}" ]]; then pkgver="${pkgver}_git${_reporefdate}";from_tag=false;else from_tag=true; fi + +build() { + export NODE_OPTIONS="--max-old-space-size=4096" + yarn --frozen-lockfile + yarn build + return 0 +} + +package() { + mkdir -p "${pkgdir}/usr/share/webapps/airsonic-refix" + cp -r "${builddir}/dist/"* "${pkgdir}/usr/share/webapps/airsonic-refix/" + chmod -R 755 "${pkgdir}/usr/share/webapps/airsonic-refix/" + find "${pkgdir}/usr/share/webapps/airsonic-refix/" -type f -print0 | xargs -I _ chmod -R 644 _ + return 0 +} + +sha512sums=" +10b26b8345160192298b4adc8bdc8b4217f42b6d025550521ae6170a41ff5f91a264de3b5b41b6f4a266f4a3d63fad7856edd36c89f92b2065f9759a333c5cef airsonic-refix-e1acdc486621a7f09ab4f26d6eb4c4c36a194c45.tar.gz +" diff --git a/src/utau/openutau/APKBUILD b/src/utau/openutau/APKBUILD index 02710f8..bf5deee 100644 --- a/src/utau/openutau/APKBUILD +++ b/src/utau/openutau/APKBUILD @@ -2,7 +2,7 @@ _reponame="OpenUtau" _repoowner="stakira" _repourl="https://${GITHUB_CODELOAD_URL:-"codeload.github.com"}/${_repoowner}/${_reponame}" # GITHUB_CODELOAD_URL due to github not having IPv6. -_reporef="c3ff44b01f5dcd0ef1bbdb5aa11ef1319cab3a03" # Must be a TAG OR BRANCH! Anything else may break shit. +_reporef="c3ff44b01f5dcd0ef1bbdb5aa11ef1319cab3a03" # Must be a TAG OR COMMIT! Anything else may break shit. _reporefdate="20250610" # YYYYMMDD of the ref _buildtarget="Release" # or `Debug` for testing |