midnight-cli-fix-git

LOW
maintainer clague 0 votes scanned 2026-10-24 09:40:04.174424
View on AUR
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: deeadly (DC only)
2
3pkgname='midnight-cli-fix-git'
4_pkgname='midnight-cli'
5pkgver=r793.e6b4900
6pkgrel=1
7pkgdesc="DiM's fork of Caelestia-CLI"
8arch=('any')
9url='https://github.com/dim-ghub/midnight-cli'
10license=('GPL-3.0-only')
11
12depends=(
13 'python'
14 'python-pillow'
15 'python-materialyoucolor'
16 'libnotify'
17 'swappy'
18 'grim'
19 'dart-sass'
20 'wl-clipboard'
21 'slurp'
22 'gpu-screen-recorder'
23 'dconf'
24 'cliphist'
25 'fuzzel'
26)
27
28optdepends=('midnight-shell-git: one of the reasons the cli exists')
29
30makedepends=(
31 'git'
32 'python-build'
33 'python-installer'
34 'python-hatch'
35 'python-hatch-vcs'
36)
37
38provides=(
39 "${_pkgname}=${pkgver}"
40 "caelestia-cli=${pkgver}"
41 "caelestia-cli-git=${pkgver}"
42)
43conflicts=(
44 "${_pkgname}"
45 'dim-caelestia-cli-git'
46 'caelestia-cli'
47 'caelestia-cli-git'
48)
49replaces=('dim-caelestia-cli-git')
50
51source=("${pkgname}::git+https://github.com/dim-ghub/midnight-cli.git")
52sha256sums=('SKIP')
53
54prepare() {
55 git -C "${srcdir}/${pkgname}" clean -dfx
56}
57
58pkgver() {
59 cd "${srcdir}/${pkgname}"
60 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
61}
62
63build() {
64 local v="${pkgver#r}"
65 export SETUPTOOLS_SCM_PRETEND_VERSION="${v%.*}.0+${v#*.}"
66 export VCS_VERSIONING_PRETEND_VERSION="$SETUPTOOLS_SCM_PRETEND_VERSION"
67 cd "${srcdir}/${pkgname}"
68 python -m build --wheel --no-isolation
69}
70
71package() {
72 cd "${srcdir}/${pkgname}"
73 python -m installer --destdir="$pkgdir" dist/*.whl
74
75 if [ -f ./completions/midnight.fish ]; then
76 install -Dm644 ./completions/midnight.fish "$pkgdir/usr/share/fish/vendor_completions.d/midnight.fish"
77 elif [ -f ./completions/caelestia.fish ]; then
78 install -Dm644 ./completions/caelestia.fish "$pkgdir/usr/share/fish/vendor_completions.d/caelestia.fish"
79 fi
80}
81

Scan history

Scanned at (UTC)SeverityRules
2026-10-24 09:40:04 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion