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

pkgname=neatvnc-git
pkgver=0.6.0
pkgrel=1
pkgdesc="VNC server library that's intended to be fast and neat"
arch=(x86_64 i686 aarch64 armv7h)
url=https://github.com/any1/neatvnc
license=(custom:ISC)
depends=(
  glibc
  gnutls
  aml
  libpixman-1.so
  libturbojpeg.so
  zlib
  libglvnd
  libdrm
  ffmpeg
)
makedepends=(
  git
  libdrm
  meson
  ninja
)
makedepends=(git meson ninja libdrm)
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
}