desktop/kdegraphics-okular/PKGBUILD

45 lines
1.6 KiB
Bash
Raw Normal View History

# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/kdegraphics-okular/
2013-12-18 02:36:04 +08:00
# Include global configuration
source ../kdeapps.conf
2011-07-23 02:02:15 +08:00
pkgname=kdegraphics-okular
_pkgname=okular
2012-11-18 01:07:54 +08:00
arch=('x86_64')
2011-07-23 02:02:15 +08:00
pkgver=${_kdever}
2015-12-06 21:33:31 +08:00
pkgrel=1
2013-12-20 20:12:44 +08:00
pkgdesc='Universal document viewer'
url='http://kde.org/applications/graphics/okular/'
license=('GPL' 'LGPL' 'FDL')
options=('docs' 'debug')
groups=('kde' 'kdegraphics' 'kde-uninstall')
2011-07-23 02:02:15 +08:00
provides=('okular')
# note on libxxf86vm:
# not detected by namcap because libgl depends on it
# but nvidia providing libgl does not depend on libxxf86vm
2015-12-05 07:26:22 +08:00
depends=('kde-runtime' 'qimageblitz' 'chmlib' 'djvulibre' 'libspectre'
'libxxf86vm' 'libkexiv2_4' 'poppler-qt' 'libkscreen4')
makedepends=('cmake' 'automoc4' 'ebook-tools' 'docbook-xsl' 'kdegraphics-mobipocket')
optdepends=('ebook-tools: epub support'
'kdegraphics-mobipocket: mobi support')
install=okular.install
2012-03-30 09:29:52 +08:00
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
2014-01-11 20:59:04 +08:00
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
2011-07-23 02:02:15 +08:00
build() {
2013-12-20 20:12:44 +08:00
cd ${srcdir}/${_pkgname}-${pkgver}
2014-02-03 00:43:47 +08:00
CXXFLAGS="${CXXFLAGS} -I /usr/include/freetype2" cmake . \
2013-12-20 20:12:44 +08:00
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DKDE4_BUILD_TESTS=ON \
2013-12-20 20:12:44 +08:00
-DWITH_ActiveApp=OFF \
2014-02-03 00:43:47 +08:00
-DFREETYPE_INCLUDE_DIR=/usr/include/freetype2/freetype/config \
2013-12-20 20:12:44 +08:00
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
2011-07-23 02:02:15 +08:00
}
package() {
2013-12-20 20:12:44 +08:00
cd ${srcdir}/${_pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
2011-07-23 02:02:15 +08:00
}