summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d66f35cda8af8283cb7b6506f7895771ccaca39a (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: Mattia Borda <mattiagiovanni.borda@icloud.com>

pkgname=eyedropper-git
pkgver=0.5.1.r0.geb3c8a4
pkgrel=1
pkgdesc='A powerful color picker and formatter'
arch=(x86_64)
url=https://github.com/FineFindus/${pkgname%-git}
license=(GPL3)
depends=(libadwaita)
makedepends=(git meson rust)
checkdepends=(appstream-glib)
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=(git+$url)
b2sums=(SKIP)

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

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

check() {
	meson test -C build
}

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