kimai-cli
LOW
maintainer billypilgrim
0 votes
scanned 2026-10-27 11:47:37.152749
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: Alex Dewar <a.dewar@imperial.ac.uk>
2
pkgname=kimai-cli
3
pkgver=2.0.0
4
pkgrel=1
5
pkgdesc='Console application to manage your Kimai time-tracking data remotely'
6
arch=(any)
7
url=https://github.com/kimai/cli
8
license=(MIT)
9
depends=(php)
10
makedepends=(composer)
11
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
12
kimai.sh)
13
sha256sums=('f473707708a78cb86ed907a9e72a5e1ce52d8fc9c6ec02397a11063d5381964a'
14
'23e045edb14b8a39f54b2dbf5562ee20d74dc9b5013080341966c941bc52c562')
15
16
prepare() {
17
cd "cli-$pkgver"
18
# Fill the placeholders that box would normally replace
19
# GitHub archives carry the tagged commit's date as file mtime
20
local release_date
21
release_date=$(date -u -d "@$(stat -c %Y src/Constants.php)" +%Y-%m-%d)
22
sed -i \
23
-e "s/@git-commit-short@/$pkgver/" \
24
-e "s/@release-date@/$release_date/" \
25
src/Constants.php
26
}
27
28
build() {
29
cd "cli-$pkgver"
30
# Arch ships iconv as a module that is disabled by default
31
php -d extension=iconv /usr/bin/composer install --no-dev --optimize-autoloader --no-interaction
32
find vendor -type d \( -iname tests -o -iname test \) -prune -exec rm -rf {} +
33
}
34
35
check() {
36
cd "cli-$pkgver"
37
php -d extension=iconv bin/kimai --version
38
php -d extension=iconv bin/kimai list >/dev/null
39
}
40
41
package() {
42
cd "cli-$pkgver"
43
install -d "$pkgdir/usr/share/$pkgname"
44
cp -r bin src vendor "$pkgdir/usr/share/$pkgname/"
45
install -Dm755 "$srcdir/kimai.sh" "$pkgdir/usr/bin/kimai"
46
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47
}
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 11:47:37 | Low | 1 |