dux-calendar-git
LOW
maintainer bbedward
1 votes
scanned 2026-11-04 02:05:35.233463
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Avenge Media <avengemediallc at gmail dot com>
2
3
pkgname=dux-calendar-git
4
_pkgname=dux-calendar
5
_binname=dcal
6
_iconname=dev.duxlabs.calendar
7
_desktopid=dev.duxlabs.calendar
8
pkgver=2.0.0.r6.ge7123fc
9
pkgrel=1
10
pkgdesc='Local, Google, Microsoft, and CalDAV calendars for the Dux desktop (git)'
11
arch=('x86_64' 'aarch64')
12
url="https://github.com/duxlabs-dev/$_pkgname"
13
license=('MIT')
14
depends=('quickshell' 'qt6-declarative')
15
optdepends=('dms-shell: dynamic theming via Dux Shell colors')
16
makedepends=('git' 'go')
17
provides=("$_binname=$pkgver" "$_pkgname=$pkgver" "dankcalendar=$pkgver")
18
conflicts=("$_binname" "$_pkgname" 'dankcalendar' 'dankcalendar-bin' 'dankcalendar-git' 'dux-calendar-bin')
19
replaces=('dankcalendar-git')
20
source=("$pkgname::git+$url.git")
21
sha256sums=('SKIP')
22
23
prepare() {
24
cd "$srcdir/$pkgname"
25
git submodule sync
26
git submodule update --init --recursive
27
}
28
29
pkgver() {
30
cd "$srcdir/$pkgname"
31
if git describe --tags --long >/dev/null 2>&1; then
32
git describe --tags --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
33
else
34
printf "0.0.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
35
fi
36
}
37
38
build() {
39
cd "$srcdir/$pkgname/core"
40
41
local VERSION BUILD_TIME COMMIT
42
VERSION="$(git describe --tags --always 2>/dev/null | sed 's/^v//' || echo dev)"
43
BUILD_TIME="$(date -u '+%Y-%m-%d_%H:%M:%S')"
44
COMMIT="$(git rev-parse --short=8 HEAD 2>/dev/null || echo unknown)"
45
46
export CGO_ENABLED=0
47
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
48
export GOMODCACHE="$srcdir/gomodcache"
49
50
make sync-shell
51
52
go build -tags withshell \
53
-ldflags "-s -w -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME} -X main.Commit=${COMMIT}" \
54
-o bin/$_binname ./cmd/$_binname
55
56
mkdir -p bin/completions
57
bin/$_binname completion bash > "bin/completions/$_binname"
58
bin/$_binname completion zsh > "bin/completions/_$_binname"
59
bin/$_binname completion fish > "bin/completions/$_binname.fish"
60
}
61
62
check() {
63
cd "$srcdir/$pkgname/core"
64
export CGO_ENABLED=0 GOMODCACHE="$srcdir/gomodcache"
65
go test ./... || true
66
}
67
68
package() {
69
cd "$srcdir/$pkgname"
70
71
install -Dm755 "core/bin/$_binname" "$pkgdir/usr/bin/$_binname"
72
73
install -Dm644 "core/bin/completions/$_binname" "$pkgdir/usr/share/bash-completion/completions/$_binname"
74
install -Dm644 "core/bin/completions/_$_binname" "$pkgdir/usr/share/zsh/site-functions/_$_binname"
75
install -Dm644 "core/bin/completions/$_binname.fish" "$pkgdir/usr/share/fish/vendor_completions.d/$_binname.fish"
76
77
install -Dm644 "assets/$_iconname.svg" \
78
"$pkgdir/usr/share/icons/hicolor/scalable/apps/$_iconname.svg"
79
80
install -Dm644 "assets/$_desktopid.desktop" \
81
"$pkgdir/usr/share/applications/$_desktopid.desktop"
82
83
install -Dm644 "assets/systemd/$_binname.service" \
84
"$pkgdir/usr/lib/systemd/user/$_binname.service"
85
86
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
87
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
88
}
89
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-04 02:05:35 | Low | 1 |
| 2026-10-24 00:14:55 | Clean | 2 |
| 2026-10-23 19:38:15 | Low | 1 |