summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5a592723ceb5af92d8052d09b08ec0be8462510 (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
# Maintainer: Andri Yngvason <andri@yngvason.is>

pkgname=neatvnc-git
pkgver=0.1.0+40.gf3e09fd622
pkgrel=1
pkgdesc="VNC server library that's intended to be fast and neat"
arch=(x86_64 i686)
url=https://github.com/any1/neatvnc
license=(custom:ISC)
depends=(libuv libxkbcommon pixman aml-git)
makedepends=(git meson ninja libdrm)
optdepends=(libjpeg-turbo)
source=("git+$url")
sha512sums=('SKIP')
conflicts=(neatvnc)
provides=(neatvnc=${pkgver%+*})

pkgver() {
  git -C neatvnc describe --tags --abbrev=10 | sed 's/^v//; s/-/+/; s/-/./'
}

build() {
  arch-meson neatvnc build # --prefix /usr
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
  install -Dm 644 neatvnc/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
}