aboutsummaryrefslogtreecommitdiffstats
path: root/community/gtk-vnc/APKBUILD
blob: ee9d8d2988ec4cf13db0ed1ffad44cfbc7ed3a68 (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
47
48
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-vnc
pkgver=0.7.1
pkgrel=0
pkgdesc="A VNC viewer widget for GTK"
url="http://live.gnome.org/gtk-vnc"
arch="all"
license="LGPL"
depends_dev="gtk+3.0-dev gnutls-dev glib-dev"
makedepends="$depends_dev gettext-dev intltool expat-dev
	libgcrypt-dev libgpg-error-dev cyrus-sasl-dev perl-text-csv
	gobject-introspection-dev vala sed"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc"

# secfixes:
#   0.7.0-r0:
#   - CVE-2017-5884
#   - CVE-2017-5885

builddir="$srcdir/$pkgname-$pkgver"
build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-examples \
		--enable-introspection \
		--with-gtk=3.0 \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

gvncviewer() {
	pkgdesc="Demo application for gtk-vnc"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="5d62f60e1c9fe70f93a9d21c529145459f0d59d588631597d533ecba94864271d1095599db9447ac4843814be61af7a7c947f69e5a9cd26db7e811f2c4e95f0c  gtk-vnc-0.7.1.tar.xz"