aboutsummaryrefslogblamecommitdiffstats
path: root/community/gtk-vnc/APKBUILD
blob: ff072635c11b1e7e7f3848aa90c96470ddbfdc5d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    

                                                   
            
        

                                     
          
              
                                             
                                                        
                                                                   
                                           
                                                                                         
                                                                
 




                   
                                   
          
                      



                                 
                                 
                                        
                                

                                  
                        


           
                      
                                                      
 






                                              
                                                                                                                                                                   
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-vnc
pkgver=0.7.0
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="553a2794ca5351a57760acd44f1fb36e16b7ba48404213f1a998c886257045cfb0670ef6124ba1b2a68eee26e34b00b4c00b00f4fc1b9e5f64f227fdccc35a47  gtk-vnc-0.7.0.tar.xz"