midnight-cli-fix-git
LOW
maintainer clague
0 votes
scanned 2026-10-24 09:40:04.174424
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
3
pkgname='midnight-cli-fix-git'
4
_pkgname='midnight-cli'
5
pkgver=r793.e6b4900
6
pkgrel=1
7
pkgdesc="DiM's fork of Caelestia-CLI"
8
arch=('any')
9
url='https://github.com/dim-ghub/midnight-cli'
10
license=('GPL-3.0-only')
11
12
depends=(
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
28
optdepends=('midnight-shell-git: one of the reasons the cli exists')
29
30
makedepends=(
31
'git'
32
'python-build'
33
'python-installer'
34
'python-hatch'
35
'python-hatch-vcs'
36
)
37
38
provides=(
39
"${_pkgname}=${pkgver}"
40
"caelestia-cli=${pkgver}"
41
"caelestia-cli-git=${pkgver}"
42
)
43
conflicts=(
44
"${_pkgname}"
45
'dim-caelestia-cli-git'
46
'caelestia-cli'
47
'caelestia-cli-git'
48
)
49
replaces=('dim-caelestia-cli-git')
50
51
source=("${pkgname}::git+https://github.com/dim-ghub/midnight-cli.git")
52
sha256sums=('SKIP')
53
54
prepare() {
55
git -C "${srcdir}/${pkgname}" clean -dfx
56
}
57
58
pkgver() {
59
cd "${srcdir}/${pkgname}"
60
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
61
}
62
63
build() {
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
71
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-24 09:40:04 | Low | 1 |