summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavide Depau2019-02-16 23:51:06 +0100
committerDavide Depau2019-02-16 23:51:06 +0100
commit41fede83e517fe87f00c09b72aa252bad290f485 (patch)
treeb80035f30ea526830819cd27daa6cb1762ae6c01 /PKGBUILD
downloadaur-wcm-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3075d2507a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
+pkgname=wcm-git
+pkgver=r89.f481ea3
+pkgrel=1
+pkgdesc='Wayfire Config Manager'
+url=https://wayfire.org
+arch=(x86_64)
+license=(custom:MIT)
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+depends=(wf-config gtkmm3)
+makedepends=(wayland-protocols meson ninja git)
+source=("${pkgname}::git+https://github.com/WayfireWM/wcm")
+sha512sums=('SKIP')
+
+pkgver () {
+ cd "${pkgname}"
+ (
+ set -o pipefail
+ git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ )
+}
+
+build () {
+ rm -rf build
+ arch-meson "${pkgname}" build
+ ninja -C build
+}
+
+package () {
+ DESTDIR="${pkgdir}" ninja -C build install
+}
+