summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24a65f0ba0a8608d0489a39d4175d2a3a601ad91 (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
pkgname=wlvncc-git
_pkgname=wlvncc
pkgver=r106.9ef4184
pkgrel=2
pkgdesc='Wayland native VNC client'
arch=(x86_64)
url=https://github.com/any1/wlvncc
license=(custom:ISC)
depends=(aml libvncserver libxkbcommon libdrm ffmpeg mesa pixman wayland)
makedepends=(git meson wayland-protocols)
source=("git+$url")
sha512sums=('SKIP')
conflicts=(wlvncc)
provides=(wlvncc)

pkgver() {
  cd "$_pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
    arch-meson wlvncc build
    meson compile -C build
}

package() {
    meson install -C build --destdir "$pkgdir"
    install -Dm 644 wlvncc/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
}