summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71030b3d8e0b32cbc6791756f89bce9b340faee9 (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
# $Id: PKGBUILD 213872 2014-05-30 21:30:40Z bisson $
# Maintainer: Brian Bidulock <bidulock@Openss7.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: damir <damir@archlinux.org>

pkgname=libvncserver-git
pkgver=0.9.13.r54.g7f2892c0
pkgrel=1
pkgdesc='VNC server for real X displays'
url="https://LibVNC.github.io"
arch=('i686' 'x86_64')
license=('GPL')
options=('!emptydirs')
depends=('libpng' 'libjpeg' 'gnutls' 'libgcrypt' 'libsystemd' 'libsasl')
provides=('libvncserver')
conflicts=('libvncserver')
makedepends=('git' 'cmake')
source=("$pkgname::git+https://github.com/libvnc/libvncserver.git")
sha1sums=('SKIP')

pkgver() {
  cd $pkgbase
  git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([0-9]*-g),r\1,;s,[-_],.,g'
}

build() {
  cd $pkgbase
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd $pkgbase
  make DESTDIR="$pkgdir" install
}