summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a7ec23bb97dc7084c1813e1d7aae995dbf3c711 (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
# Maintainer: workonfire <kolucki62@gmail.com>

pkgname='contrast'
pkgver=0.0.3
pkgrel=2
pkgdesc='Checks whether the contrast between two colors meet the WCAG requirements.'
changelog='CHANGELOG'
arch=('x86_64')
url="https://gitlab.gnome.org/World/design/${pkgname}"
license=('GPL3')
depends=('libhandy0')
makedepends=('rust' 'meson' 'git')
source=("git+${url}.git#tag=${pkgver}")
sha256sums=('SKIP')

pkgver () {
	cd ${pkgname}
	git describe --tags | sed 's/-/.r/; s/-/./'
}

build () {
	arch-meson ${pkgname} build
	ninja -C build
}

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