summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13b22dd7a00a63b27403e541db2f6a9f4aec3483 (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
# Maintainer: Alexander Kempen <alexander dot kempen at posteo dot de>
pkgname=wayvnc-git
_pkgname=wayvnc
pkgver=r66.ffce795
pkgrel=1
license=("ISC")
pkgdesc="This is a VNC server for wlroots based Wayland compositors."
makedepends=("meson" "git" "ninja")
depends=("libuv" "libxkbcommon" "pixman" "neatvnc-git" "libglvnd")
optdepends=()
arch=("i686" "x86_64")
url="https://github.com/any1/wayvnc"
source=("${_pkgname%-*}::git+https://github.com/any1/wayvnc.git")
sha512sums=('SKIP')

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

build() {
	cd "$_pkgname"
	meson \
		--buildtype=release \
		--prefix /usr \
		"$srcdir/build"
	ninja -C "$srcdir/build"
}

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