kimai-cli

LOW
maintainer billypilgrim 0 votes scanned 2026-10-27 11:47:37.152749
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: Alex Dewar <a.dewar@imperial.ac.uk>
2pkgname=kimai-cli
3pkgver=2.0.0
4pkgrel=1
5pkgdesc='Console application to manage your Kimai time-tracking data remotely'
6arch=(any)
7url=https://github.com/kimai/cli
8license=(MIT)
9depends=(php)
10makedepends=(composer)
11source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
12 kimai.sh)
13sha256sums=('f473707708a78cb86ed907a9e72a5e1ce52d8fc9c6ec02397a11063d5381964a'
14 '23e045edb14b8a39f54b2dbf5562ee20d74dc9b5013080341966c941bc52c562')
15
16prepare() {
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
28build() {
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
35check() {
36 cd "cli-$pkgver"
37 php -d extension=iconv bin/kimai --version
38 php -d extension=iconv bin/kimai list >/dev/null
39}
40
41package() {
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)SeverityRules
2026-10-27 11:47:37 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