summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9ab73568fa6f10700459e09a3e63203626fb331 (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
41
42
43
44
45
46
47
48
49
# Maintainer: jaelpark@outlook.com
pkgname=chamfer-git
_pkgname=chamfer
pkgver=r369
pkgrel=1
pkgdesc="A tiling X11 window manager with Vulkan compositor."
arch=("x86_64")
url="https://github.com/jaelpark/chamferwm"
license=("BSD")
depends=(
	'xcb-util-keysyms' 'xcb-util-wm' 'xcb-util-cursor' 'vulkan-icd-loader' 'glm' 'boost' 'python' 'python-xlib' 'python-psutil' 'freetype2' 'fontconfig' 'harfbuzz'
)
makedepends=(
    'git' 'meson' 'ninja' 'vulkan-headers' 'shaderc'
)
#optdepends=(
#	'python-psutil': launch processes'
#)
source=(
	"${_pkgname}"::'git+https://github.com/jaelpark/chamferwm.git'
)
md5sums=("SKIP")
options=(!buildflags)

pkgver() {
    cd "${srcdir}/${_pkgname}"
	echo r$(git rev-list --count master)
}

build() {
    cd "${srcdir}/${_pkgname}"
	if [ -d build ]; then
		rm -rf build
	fi
	meson --buildtype=release build
    ninja -C build
}

package() {
    cd "${srcdir}/${_pkgname}"
	mkdir -p ${pkgdir}/usr/bin
	cp build/chamfer ${pkgdir}/usr/bin/.
	mkdir -p ${pkgdir}/usr/share/chamfer/{shaders,config}
	cp build/*.spv ${pkgdir}/usr/share/chamfer/shaders/.
	cp config/* ${pkgdir}/usr/share/chamfer/config/.
	mkdir -p ${pkgdir}/usr/share/xsessions
	cp share/* ${pkgdir}/usr/share/xsessions/.
}