summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03b5e7b0f6f9af680d4a0d8942ec00db82e1319d (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=neatvnc-git
_pkgname=neatvnc
pkgver=r202.f3e09fd
pkgrel=1
license=("ISC")
pkgdesc="This is a liberally licensed VNC server library that's intended to be fast and neat. Note: This is a beta release, so the interface is not yet stable."
makedepends=("meson" "git" "ninja" "libdrm")
depends=("libuv" "libxkbcommon" "pixman" "aml-git")
optdepends=("libjpeg-turbo")
arch=("i686" "x86_64")
url="https://github.com/any1/neatvnc"
source=("${pkgname%-*}::git+https://github.com/any1/neatvnc.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
}