aboutsummaryrefslogtreecommitdiffstats
path: root/community/wlc/APKBUILD
blob: 4a74677c0eddb3c8166f95b441c10922cae99149 (plain) (blame)
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
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=wlc
pkgver=0.0.9
pkgrel=0
pkgdesc="Wayland Compositor Library"
url="https://github.com/Cloudef/wlc"
arch="all"
license="MIT"
depends="xkeyboard-config"
makedepends="cmake eudev-dev libinput-dev libx11-dev libxkbcommon-dev mesa-dev
	pixman-dev wayland-dev wayland-protocols xcb-util-image-dev
	xcb-util-wm-dev"
subpackages="$pkgname-dev"
source="https://github.com/Cloudef/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	cmake . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		|| return 1
	make
}

check() {
	make test -C "$builddir"
}

package() {
	make DESTDIR="$pkgdir/" -C "$builddir" install
}

sha512sums="d34a29c779a39ffb95413f26c62d545f29ed7890529296b837bb153687600582dbe927c65558923bd1614c5fe904aa9cff760c272e79c6c0eff10ba38eee895b  wlc-0.0.9.tar.bz2"