aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk-vnc/APKBUILD
blob: 81003452f60ef4be6b19d61049f68ca48b80ef44 (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
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-vnc
pkgver=0.5.3
pkgrel=1
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 libiconv-dev gettext-dev intltool expat-dev
	libgcrypt-dev libgpg-error-dev cyrus-sasl-dev perl-text-csv
	gobject-introspection-dev vala sed"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
}

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
	rm "$pkgdir"/usr/lib/*.la
}

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

md5sums="1dccd918a4d633020e4afaf6c9352cde  gtk-vnc-0.5.3.tar.xz"
sha256sums="d490a6c8f40e550d43aef0043ce3bec498ec220d5eb3dc5cdcff8fd561149caf  gtk-vnc-0.5.3.tar.xz"
sha512sums="a5d81fcb8ee04f033a3aec2eed334e4237c8f4d7334e4875a149b5b385b0f0f0948d2d5227fbbfdccec8d192ba8bbc5f93dd83bb0d6604da25675662a9858cf2  gtk-vnc-0.5.3.tar.xz"