summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 974fee52dc23bd724cf5ef4ae75adcfcc6e76f09 (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
35
36
37
38
39
40
# Maintainer: Hexawolf <hexawolf@protonmail.com>
pkgname=swaylay-git
_pkgname=swaylay
pkgver=r10.7c24690
pkgrel=1
license=("MIT")
pkgdesc="Keyboard layouts monitoring utility for Sway WM"
makedepends=("meson" "ninja" "git")
depends=("json-c" "sway")
arch=("i686" "x86_64")
url="https://github.com/Hexawolf/swaylay"
source=("${pkgname%-*}::git+https://github.com/Hexawolf/swaylay.git")
sha512sums=('SKIP')
provides=("swaylay")
conflicts=("swaylay")
options=(strip)

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$_pkgname"
}

build() {
	cd "$_pkgname"
	meson \
		--buildtype release \
		-Dwerror=false \
		--prefix /usr \
		"$srcdir/build"
	ninja -C "$srcdir/build"
}

package() {
	cd "$_pkgname"
	DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
}