Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions srcpkgs/dankcalendar/template
Original file line number Diff line number Diff line change
@@ -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 <AvengeMedia.US@gmail.com>"
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"
}