summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66ea8ec5b6538d9ce4b39b9a23b26fa9a8eca40c (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
# Maintainer: Solomon Choina <shlomochoina@gmail.com>
pkgname=wf-config-git
pkgver=0.7.1.r5.g578b0bf
pkgrel=1
pkgdesc="A library for managing configuration files, written for wayfire"
arch=('x86_64')
url="https://github.com/WayfireWM/wf-config"
license=('MIT')
depends=('libevdev' 'libxml2')
makedepends=('git' 'wlroots' 'meson' 'ninja' 'wayland-protocols' 
	          'glm' 'doctest' 'cmake')
provides=("wf-config=0.4.0")
conflicts=("${pkgname%-git}")
replaces=()
source=('git+https://github.com/WayfireWM/wf-config')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/wf-config"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'

}

build() {
	cd "$srcdir/wf-config/"
  arch-meson build
  ninja -C build
}


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