aboutsummaryrefslogtreecommitdiff
path: root/dist/archlinux/PKGBUILD
blob: 68f174f9c4115d6bf769eed43099dc3588e2d494 (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
pkgname=wlroots
pkgver=r600.d89272d
pkgrel=1
license=('MIT')
pkgdesc='Wayland compositor library'
makedepends=("meson")
depends=(
	"wayland"
	"wayland-protocols"
	"mesa"
	"libdrm"
	"libinput"
	"libxkbcommon"
	"libsystemd"
	"pixman"
	"libxcb"
)
arch=("x86_64")
url="https://github.com/swaywm/wlroots"
source=("${pkgname}::git+https://github.com/swaywm/wlroots.git")
sha1sums=('SKIP')
provides=('wlroots')
conflicts=('wlroots')

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

build() {
	cd "${srcdir}/${pkgname}"

	meson build \
		--prefix=/usr \
		-Dbuildtype=debugoptimized \
		-Db_lto=True \
		-Denable-systemd=True \
		-Denable-elogind=False \
		-Denable-libcap=False

	ninja -C build
}

package() {
	cd "${srcdir}/${pkgname}"

	DESTDIR="${pkgdir}" ninja -C build install
}