summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8682cf33db8798eb00af66b6bebf19dbe61814a (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
# Maintainer: Solomon Choina <shlomochoina@gmail.com>
pkgname=wf-config-git 
pkgver=0.4.0.r2.g3554d95
pkgrel=2
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')
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/\([^-]*-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
}