summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 656ff57907dc82f1ef70a3e9f6f4302873c1c07b (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
_srcname=kmsvnc
pkgname=${_srcname}-git
pkgver=0.0.4.0.ga7de7db
pkgrel=1
pkgdesc="A VNC server for DRM/KMS capable GNU/Linux devices"
arch=('x86_64')
url='https://github.com/isjerryxiao/kmsvnc'
license=('GPL3')
depends=('libvncserver' 'libxkbcommon' 'libdrm' 'libva')
makedepends=('git' 'cmake')
provides=("$_srcname")
conflicts=("$_srcname")

source=("${_srcname}::git+${url}.git#branch=master")

sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_srcname"
    git describe --tags --long | sed 's/^v//;s/-/./g'
}

prepare() {
    cd "$srcdir/${_srcname}"
    mkdir -p build
}

build() {
    cd "$srcdir/${_srcname}"
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    make    
}

package() {
  cd "$srcdir/${_srcname}"
  cd build
  make DESTDIR="$pkgdir/" install
}