aboutsummaryrefslogblamecommitdiffstats
path: root/community/evince/APKBUILD
blob: 74ba721c91d0be9140f0bf5ce7c688913433782c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              


                                                         
             
        


                                         
                          
                            
                                                                         
                                                                            
                                                                             
                                                          

                                                             
                                                                   
                                                                                               
                                         
 



                        
         
                      



                                 

                                    
                                   
                                  

                                        

                               


           

                                      

 




                      






                                                    


                                                                   

 
                                                                                                                                                                   
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=evince
pkgver=3.30.2
pkgrel=0
pkgdesc="simple document viewer for GTK+"
url="http://projects.gnome.org/evince/"
arch="all"
license="GPL-2.0-or-later"
depends="adwaita-icon-theme"
depends_dev="gtk+3.0-dev poppler-dev libsm-dev libevent-dev libxrandr-dev
	libx11-dev libxcursor-dev libxcomposite-dev libxi-dev util-linux-dev
	tiff-dev gobject-introspection-dev libxml2-dev py-six libspectre-dev"
makedepends="$depends_dev intltool itstool gnome-doc-utils
	adwaita-icon-theme-dev gnome-common automake autoconf
	gtk-doc yelp-tools"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
builddir="${srcdir}/${pkgname}-${pkgver}"

# secfixes:
#   3.24.0-r2:
#     - CVE-2017-1000083

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-nautilus \
		--without-keyring \
		--without-gspell \
		--enable-introspection \
		--disable-static \
		--enable-comics
	make
}

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

check() {
	cd "$builddir"
	make check
}

libs() {
	default_libs
	mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/
}

doc() {
	default_doc
	if [ -d "$pkgdir"/usr/share/help ]; then
		mv "$pkgdir"/usr/share/help "$subpkgdir"/usr/share/
	fi
}

sha512sums="dfffcf15547d0720bd2379054d7b9bee02f8bea7113562162cbab62d77cf84c04f70dcc87a3e6b1ba62db38783df8f481d801854d8f0767f60e9cfabd9efc646  evince-3.30.2.tar.xz"