package-pipeline-nextcloud/nextcloud-28-app-notify-push/package.sh
s3lph b5cf1da548
Some checks failed
/ nextcloud-27 (push) Successful in 10m48s
/ nextcloud-27-app-calendar (push) Successful in 3m48s
/ nextcloud-27-app-contacts (push) Successful in 1m26s
/ nextcloud-27-app-deck (push) Successful in 3m30s
/ nextcloud-27-app-forms (push) Successful in 2m15s
/ nextcloud-27-app-gpoddersync (push) Successful in 59s
/ nextcloud-27-app-gpxpod (push) Successful in 2m47s
/ nextcloud-27-app-groupfolders (push) Successful in 1m45s
/ nextcloud-27-app-polls (push) Successful in 3m50s
/ nextcloud-27-app-previewgenerator (push) Successful in 1m1s
/ nextcloud-27-app-mail (push) Successful in 8m30s
/ nextcloud-27-app-news (push) Successful in 2m13s
/ nextcloud-27-app-nextpod (push) Successful in 1m32s
/ nextcloud-27-app-notes (push) Successful in 2m15s
/ nextcloud-27-app-notify-push (push) Successful in 4m42s
/ nextcloud-27-app-richdocuments (push) Successful in 2m39s
/ nextcloud-27-app-richdocumentscode (push) Successful in 12m11s
/ nextcloud-27-app-talk (push) Successful in 7m52s
/ nextcloud-27-app-tasks (push) Successful in 2m57s
/ nextcloud-27-app-twofactor-webauthn (push) Successful in 4m7s
/ nextcloud-27-app-user-oidc (push) Successful in 1m37s
/ nextcloud-28 (push) Successful in 16m55s
/ nextcloud-28-app-calendar (push) Successful in 4m15s
/ nextcloud-28-app-contacts (push) Successful in 1m57s
/ nextcloud-28-app-deck (push) Successful in 3m49s
/ nextcloud-28-app-forms (push) Successful in 1m39s
/ nextcloud-28-app-gpoddersync (push) Successful in 1m9s
/ nextcloud-28-app-gpxpod (push) Successful in 3m22s
/ nextcloud-28-app-groupfolders (push) Successful in 1m58s
/ nextcloud-28-app-polls (push) Successful in 3m48s
/ nextcloud-28-app-previewgenerator (push) Successful in 1m4s
/ nextcloud-28-app-mail (push) Successful in 6m36s
/ nextcloud-28-app-news (push) Failing after 40s
/ nextcloud-28-app-nextpod (push) Successful in 1m35s
/ nextcloud-28-app-notes (push) Successful in 2m15s
/ nextcloud-28-app-notify-push (push) Successful in 4m7s
/ nextcloud-28-app-richdocuments (push) Successful in 3m2s
/ nextcloud-28-app-richdocumentscode (push) Successful in 6m24s
/ nextcloud-28-app-talk (push) Successful in 4m30s
/ nextcloud-28-app-tasks (push) Successful in 1m7s
/ nextcloud-28-app-twofactor-webauthn (push) Successful in 1m33s
/ nextcloud-28-app-user-oidc (push) Successful in 52s
feat: nextcloud-28
2023-12-14 00:56:30 +01:00

49 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
. ../.skel/nextcloud-app/build-nextcloud-app
export ARCHS=(amd64 arm64 armhf)
function _ncarch() {
case "$1" in
amd64)
echo x86_64
;;
arm64)
echo aarch64
;;
armhf)
echo armv7
;;
*)
echo no such architecture
exit 1
esac
}
function post_prepare() {
NCARCH=$(_ncarch $ARCH)
mkdir -p \
"${PKGDIR}/lib/systemd/system" \
"${PKGDIR}/etc/default"
mv "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/${NCARCH}/notify_push" \
"${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/notify_push"
find "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/" -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
cp "${ROOT}/nextcloud-notify-push.service" "${PKGDIR}/lib/systemd/system/nextcloud-notify-push.service"
cp "${ROOT}/nextcloud-notify-push.default" "${PKGDIR}/etc/default/nextcloud-notify-push"
cp "${SRCDIR}/notify_push/LICENSE" "${PKGDIR}/usr/share/doc/nextcloud-${NCMAJOR}-app-${APP//_/-}/copyright"
echo '/etc/default/nextcloud-notify-push' > "${PKGDIR}/DEBIAN/conffiles"
github_changelog nextcloud/notify_push
}
function post_chown() {
chmod 0600 "${PKGDIR}/etc/default/nextcloud-notify-push"
chmod 0755 "${PKGDIR}/usr/lib/nextcloud/nextcloud-apps/notify_push/bin/notify_push"
}
function postinst_configure_post() {
deb-systemd-helper enable nextcloud-notify-push.service
deb-systemd-invoke restart nextcloud-notify-push.service
}
build_nextcloud_app notify_push 28