fix: build architecture-specific memories packages
Some checks failed
/ nextcloud-28 (push) Successful in 11m0s
/ nextcloud-28-app-calendar (push) Successful in 4m2s
/ nextcloud-28-app-contacts (push) Successful in 1m40s
/ nextcloud-28-app-deck (push) Successful in 3m50s
/ nextcloud-28-app-forms (push) Successful in 2m40s
/ nextcloud-28-app-gpoddersync (push) Successful in 1m9s
/ nextcloud-28-app-gpxpod (push) Successful in 8m8s
/ nextcloud-28-app-groupfolders (push) Successful in 1m56s
/ nextcloud-28-app-polls (push) Successful in 4m26s
/ nextcloud-28-app-previewgenerator (push) Successful in 1m9s
/ nextcloud-28-app-mail (push) Successful in 9m16s
/ nextcloud-28-app-memories (push) Successful in 9m37s
/ nextcloud-28-app-news (push) Successful in 3m17s
/ nextcloud-28-app-nextpod (push) Successful in 1m44s
/ nextcloud-28-app-notes (push) Successful in 2m34s
/ nextcloud-28-app-notify-push (push) Successful in 4m46s
/ nextcloud-28-app-richdocuments (push) Successful in 3m59s
/ nextcloud-28-app-richdocumentscode (push) Successful in 14m59s
/ nextcloud-28-app-talk (push) Successful in 8m38s
/ nextcloud-28-app-tasks (push) Successful in 1m48s
/ nextcloud-28-app-twofactor-webauthn (push) Successful in 4m11s
/ nextcloud-28-app-user-oidc (push) Successful in 2m7s
/ nextcloud-29 (push) Successful in 18m53s
/ nextcloud-29-app-calendar (push) Successful in 4m48s
/ nextcloud-29-app-contacts (push) Successful in 2m49s
/ nextcloud-29-app-deck (push) Successful in 4m16s
/ nextcloud-29-app-forms (push) Successful in 3m11s
/ nextcloud-29-app-gpoddersync (push) Failing after 46s
/ nextcloud-29-app-gpxpod (push) Successful in 7m56s
/ nextcloud-29-app-groupfolders (push) Failing after 55s
/ nextcloud-29-app-polls (push) Successful in 4m35s
/ nextcloud-29-app-previewgenerator (push) Successful in 1m10s
/ nextcloud-29-app-mail (push) Successful in 2m51s
/ nextcloud-29-app-memories (push) Successful in 7m51s
/ nextcloud-29-app-news (push) Successful in 3m32s
/ nextcloud-29-app-nextpod (push) Successful in 1m44s
/ nextcloud-29-app-notes (push) Successful in 2m30s
/ nextcloud-29-app-notify-push (push) Successful in 4m51s
/ nextcloud-29-app-richdocuments (push) Successful in 3m58s
/ nextcloud-29-app-richdocumentscode (push) Successful in 7m22s
/ nextcloud-29-app-talk (push) Successful in 2m8s
/ nextcloud-29-app-tasks (push) Successful in 1m46s
/ nextcloud-29-app-twofactor-webauthn (push) Successful in 3m11s
/ nextcloud-29-app-user-oidc (push) Successful in 1m59s

This commit is contained in:
s3lph 2024-05-09 02:17:24 +02:00
parent c4beaa2309
commit 0537b7ba36
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 94 additions and 0 deletions

View file

@ -2,9 +2,56 @@
. ../.skel/nextcloud-app/build-nextcloud-app
export ARCHS=(amd64 arm64)
function _ncarch() {
case "$1" in
amd64)
echo x86_64
;;
arm64)
echo aarch64
;;
*)
echo no such architecture
exit 1
esac
}
function _binarch() {
case "$1" in
amd64)
echo amd64
;;
arm64)
echo aarch64
;;
*)
echo no such architecture
exit 1
esac
}
function post_chown() {
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/build_tag_lookup"
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/exiftool"
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/validate"
}
post_prepare() {
NCARCH=$(_ncarch $ARCH)
for oarch in ${ARCHS[@]}; do
if [[ "$(_ncarch $oarch)" == "${NCARCH}" ]]; then
continue
fi
binarch=$(_binarch $oarch)
rm -f ${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/*-${binarch}*
rm -f ${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/*-${binarch}*
done
github_changelog pulsejet/memories
}
export ADDITIONAL_DEPS=", sensible-utils"
build_nextcloud_app memories 28

View file

@ -2,9 +2,56 @@
. ../.skel/nextcloud-app/build-nextcloud-app
export ARCHS=(amd64 arm64)
function _ncarch() {
case "$1" in
amd64)
echo x86_64
;;
arm64)
echo aarch64
;;
*)
echo no such architecture
exit 1
esac
}
function _binarch() {
case "$1" in
amd64)
echo amd64
;;
arm64)
echo aarch64
;;
*)
echo no such architecture
exit 1
esac
}
function post_chown() {
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/build_tag_lookup"
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/exiftool"
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/validate"
}
post_prepare() {
NCARCH=$(_ncarch $ARCH)
for oarch in ${ARCHS[@]}; do
if [[ "$(_ncarch $oarch)" == "${NCARCH}" ]]; then
continue
fi
binarch=$(_binarch $oarch)
rm -f ${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/*-${binarch}*
rm -f ${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/memories/bin-ext/exiftool/*-${binarch}*
done
github_changelog pulsejet/memories
}
export ADDITIONAL_DEPS=", sensible-utils"
build_nextcloud_app memories 29