summaryrefslogblamecommitdiff
path: root/user/evince/APKBUILD
blob: 0b33539d547c5d1743ab5bff9e48ea948219cf6c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  

             



                                                                                                                   
                                                                     




                                                                          
                                                     
                                                                                          



                      

         














































                                                                         



                  


                                      
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=evince
pkgver=3.34.0
pkgrel=0
pkgdesc="GNOME document viewer"
url="https://wiki.gnome.org/Apps/Evince"
arch="all"
license="GPL-2.0+ AND MIT AND BSD-3-Clause AND LGPL-2.0+ AND X11 AND LGPL-3.0-only AND Public-Domain AND LGPL-2.1+"
depends="gsettings-desktop-schemas gst-plugins-base gst-plugins-good"
makedepends="djvulibre-dev glib-dev gobject-introspection-dev
	gsettings-desktop-schemas-dev gstreamer-dev gst-plugins-base-dev
	gtk+3.0-dev itstool libarchive-dev libexecinfo-dev libgxps-dev
	libsecret-dev libspectre-dev libxml2-dev libxml2-utils poppler-dev
	tiff-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://ftp.gnome.org/pub/gnome/sources/evince/${pkgver%.*}/evince-$pkgver.tar.xz"

# secfixes:
#   3.32.0-r2:
#     - CVE-2019-11459

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-gspell \
		--disable-nautilus \
		--enable-introspection \
		--enable-ps

	# our msgfmt(1) can't do --desktop
	cp data/org.gnome.Evince.desktop.in data/org.gnome.Evince.desktop
	cp data/org.gnome.Evince-previewer.desktop.in \
		data/org.gnome.Evince-previewer.desktop
	cp backend/pdf/evince-pdfdocument.metainfo.xml.in \
		backend/pdf/evince-pdfdocument.metainfo.xml
	cp backend/pdf/pdfdocument.evince-backend.desktop.in \
		backend/pdf/pdfdocument.evince-backend
	cp backend/djvu/evince-djvudocument.metainfo.xml.in \
		backend/djvu/evince-djvudocument.metainfo.xml
	cp backend/djvu/djvudocument.evince-backend.desktop.in \
		backend/djvu/djvudocument.evince-backend
	cp backend/tiff/evince-tiffdocument.metainfo.xml.in \
		backend/tiff/evince-tiffdocument.metainfo.xml
	cp backend/tiff/tiffdocument.evince-backend.desktop.in \
		backend/tiff/tiffdocument.evince-backend
	cp backend/comics/evince-comicsdocument.metainfo.xml.in \
		backend/comics/evince-comicsdocument.metainfo.xml
	cp backend/comics/comicsdocument.evince-backend.desktop.in \
		backend/comics/comicsdocument.evince-backend
	cp backend/xps/evince-xpsdocument.metainfo.xml.in \
		backend/xps/evince-xpsdocument.metainfo.xml
	cp backend/xps/xpsdocument.evince-backend.desktop.in \
		backend/xps/xpsdocument.evince-backend
	cp backend/ps/evince-psdocument.metainfo.xml.in \
		backend/ps/evince-psdocument.metainfo.xml
	cp backend/ps/psdocument.evince-backend.desktop.in \
		backend/ps/psdocument.evince-backend
	cp org.gnome.Evince.appdata.xml.in org.gnome.Evince.appdata.xml

	# we now return you to your regularly scheduled build
	make
}

check() {
	make check
}

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

sha512sums="41e59cca65003e6abca934f770b0504af13644222e88223b1b713aafd6b3335873422e914775f79182fe45de4d7fda3767cbb41c6088ff47fa8560e97b19bde2  evince-3.34.0.tar.xz"