From 646ecae4a18534d3e66def7aa35d2ca949c2fd68 Mon Sep 17 00:00:00 2001 From: purian23 Date: Sun, 21 Jun 2026 01:12:14 -0400 Subject: [PATCH] New package: dankcalendar-0.1.4 --- srcpkgs/dankcalendar/template | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 srcpkgs/dankcalendar/template diff --git a/srcpkgs/dankcalendar/template b/srcpkgs/dankcalendar/template new file mode 100644 index 00000000000000..2103ef2a19f3c7 --- /dev/null +++ b/srcpkgs/dankcalendar/template @@ -0,0 +1,42 @@ +# Template file for 'dankcalendar' +# +# Standalone DankLinux calendar app; installs the 'dcal' binary. +pkgname=dankcalendar +version=0.1.4 +revision=1 +build_style=go +build_wrksrc="core" +go_import_path="github.com/AvengeMedia/dankcalendar/core" +go_package="${go_import_path}/cmd/dcal" +go_ldflags="-X main.Version=${version}" +short_desc="Calendar app for the Dank Linux desktop (Local, Google, CalDAV, iCloud)" +maintainer="AvengeMedia " +license="MIT" +homepage="https://github.com/AvengeMedia/dankcalendar" +changelog="https://github.com/AvengeMedia/dankcalendar/releases" +distfiles="https://github.com/AvengeMedia/dankcalendar/archive/refs/tags/v${version}.tar.gz" +checksum=2721da439ab98bcecdc083307f7589ec0f8fa7ebca3732284b79b99ab68d9ede + +depends="quickshell libsecret qt6-declarative" + +post_install() { + # QML tree (build_style=go already installed the dcal binary) + vmkdir usr/share/quickshell/dankcal + vcopy "${wrksrc}/quickshell/*" usr/share/quickshell/dankcal + + # Desktop entry + icon + vinstall "${wrksrc}/assets/com.danklinux.dankcalendar.desktop" 644 usr/share/applications + vinstall "${wrksrc}/quickshell/assets/dankcalendar.svg" 644 usr/share/icons/hicolor/scalable/apps + + # Shell completions (generated by the built binary; skip when cross-building) + vmkdir usr/share/bash-completion/completions + vmkdir usr/share/zsh/site-functions + vmkdir usr/share/fish/vendor_completions.d + if [ -z "$CROSS_BUILD" ]; then + "${DESTDIR}/usr/bin/dcal" completion bash > "${DESTDIR}/usr/share/bash-completion/completions/dcal" + "${DESTDIR}/usr/bin/dcal" completion zsh > "${DESTDIR}/usr/share/zsh/site-functions/_dcal" + "${DESTDIR}/usr/bin/dcal" completion fish > "${DESTDIR}/usr/share/fish/vendor_completions.d/dcal.fish" + fi + + vlicense "${wrksrc}/LICENSE" +}