summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNahuel Gomez Castro2020-01-19 00:51:58 -0300
committerNahuel Gomez Castro2020-01-19 00:51:58 -0300
commit8e20de7829027cb091e4b5ba5cf0768424092898 (patch)
tree00328469fe8ff16391a46db9883e70f42314ea19 /PKGBUILD
downloadaur-8e20de7829027cb091e4b5ba5cf0768424092898.tar.gz
Initial commit
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
+}