summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5d9f4e0ba56
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Nahuel Gomez Castro <nahual_gomca@outlook.com.ar>
+
+pkgname='contrast'
+pkgver='0.0.2'
+pkgrel='1'
+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=('libhandy')
+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
+}