summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d281ede6cdc081f2142fbf5c6c3ba985de567b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Piotr Czajka <czajka@protonmail.com>
pkgname=screentime
pkgver=0.2.4
pkgrel=1
pkgdesc="A lightweight screen-time monitoring tool"
url="https://github.com/Ginkooo/screentime"
license=("MIT")
arch=("x86_64")
makedepends=("cargo")
source=("screentime::git+https://github.com/ginkooo/screentime.git#branch=main")
sha256sums=("SKIP")

pkgver() {
    (git describe --long --tags || echo "$pkgver") | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    return 0
}

package() {
    cd ..
    usrdir="$pkgdir/usr"
    mkdir -p $usrdir
    cargo install --no-track --path $srcdir/$pkgname --root "$usrdir"
}