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


                                                  
              
        


                                                    
                                





                                                                               

                                                                            
                                        
                                                                                      
                        
         



























                                                                                          
                                                                                                                                                                   
                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=okular
pkgver=19.04.3
pkgrel=1
pkgdesc="Universal document reader developed by KDE"
url="https://okular.kde.org/"
arch="all"
license="GPL-2.0+ AND LGPL-2.0+"
depends="kirigami2"
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kconfig-dev
	qt5-qtdeclarative-dev karchive-dev kbookmarks-dev kcompletion-dev
	kconfigwidgets-dev kcoreaddons-dev kdoctools-dev kiconthemes-dev
	kio-dev kjs-dev kparts-dev kwallet-dev kwindowsystem-dev khtml-dev
	threadweaver-dev kactivities-dev poppler-qt5-dev tiff-dev qca-dev
	libjpeg-turbo-dev kpty-dev kirigami2-dev djvulibre-dev libkexiv2-dev
	libspectre-dev ebook-tools-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/applications/$pkgver/src/okular-$pkgver.tar.xz
	es-doc-fix.patch
	"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	# All other tests require X11
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -R '^shelltest'
}

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

sha512sums="c8d2a79fe00b91f58376937ef57cbc20bc7363d9a046cf05fc34597d36f75009011c63589857270755f294adba5fc88ba980bd5affd08c4751bc9e3b908e3946  okular-19.04.3.tar.xz
d82dd9de666a28ef605d8a81e74851f265be4ccaeaa39a1cdee9eb1db830fcd0d581d01d6e89a1d36b8ea5c9c8113f1016090dc0e9f17070d388166d9e967458  es-doc-fix.patch"