summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5a27bf68145d867811f7de08592016ee75e17ac (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
28
29
30
31
32
33
34
# Maintainer: musiclover <musiclover382@protonmail.com>

pkgname=furtherance-git
pkgver=1.5.4.r1.gf953f8f
pkgrel=1
pkgdesc='Track your time without being tracked'
arch=(x86_64)
url=https://github.com/lakoliu/${pkgname%-git}
license=(GPL3)
depends=('gtk4' 'libadwaita' 'sqlite')
makedepends=('git' 'meson' 'rust')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+$url.git)
b2sums=('SKIP')

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

prepare() {
	cd ${pkgname%-git}
	cargo update
}

build() {
	arch-meson ${pkgname%-git} build
	meson compile -C build
}

package() {
	DESTDIR="${pkgdir}" meson install -C build
}