summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb9b2d910a1ac05618755f0a08b6c95007d8c1f9 (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
pkgname=wf-ctrl-git
_pkgname=wf-ctrl
pkgver=r10.d63ab76
pkgrel=1
pkgdesc="A wayfire plugin and program to control wayfire surfaces and desktop"
arch=(x86_64)
url=https://github.com/soreau/wf-ctrl
license=(unknow)
depends=(wayfire-git)
makedepends=(meson ninja pkg-config git cmake wayland-protocols glm)
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git+https://github.com/soreau/wf-ctrl.git")
sha256sums=('SKIP')
pkgver() {
    cd $_pkgname
    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
}

check () {
	meson test -C build
}

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