mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
kdegraphics-okular: Update
This commit is contained in:
parent
d5bda0290e
commit
45da335b25
@ -1,8 +1,6 @@
|
||||
|
||||
|
||||
|
||||
# Maintainer: abveritas@chakra-project[dog]org>
|
||||
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
|
||||
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
|
||||
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
|
||||
# Anke Boersma (abveritas) <abveritas@chakra-project.org>
|
||||
|
||||
# Include global configuration
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
@ -12,39 +10,57 @@ _pkgname=okular
|
||||
arch=('x86_64')
|
||||
pkgver=${_kdever}
|
||||
pkgrel=1
|
||||
pkgdesc="split package"
|
||||
url="http://www.kde.org"
|
||||
license=('GPL' 'LGPL' 'FDL')
|
||||
options=('docs' '!header' 'debug' 'log')
|
||||
groups=("kde" "kdegraphics" "kde-uninstall")
|
||||
pkgdesc='Universal document viewer'
|
||||
url='http://kde.org/applications/graphics/okular/'
|
||||
license=('GPL'
|
||||
'LGPL'
|
||||
'FDL')
|
||||
options=('docs'
|
||||
'!header'
|
||||
'debug'
|
||||
'log')
|
||||
groups=('kde'
|
||||
'kdegraphics'
|
||||
'kde-uninstall')
|
||||
provides=('okular')
|
||||
categories=('office')
|
||||
install=okular.install
|
||||
|
||||
# note on libxxf86vm:
|
||||
# not detected by namcap because libgl depends on it
|
||||
# but nvidia providing libgl does not depend on libxxf86vm
|
||||
depends=("kdelibs>=${_kdever}" "kde-runtime>=${_kdever}" 'libxxf86vm' 'sane' 'lcms' "kdegraphics-libkdcraw>=${_kdever}" "kdegraphics-libkexiv2>=${_kdever}"
|
||||
'qimageblitz' 'poppler-qt' 'chmlib' 'djvulibre' 'libspectre' 'ebook-tools')
|
||||
makedepends=('pkg-config' 'cmake' 'automoc4' 'qca')
|
||||
|
||||
depends=("kdelibs>=${_kdever}"
|
||||
"kde-runtime>=${_kdever}"
|
||||
'libxxf86vm'
|
||||
'sane'
|
||||
'lcms'
|
||||
"kdegraphics-libkdcraw>=${_kdever}"
|
||||
"kdegraphics-libkexiv2>=${_kdever}"
|
||||
'qimageblitz'
|
||||
'poppler-qt'
|
||||
'chmlib'
|
||||
'djvulibre'
|
||||
'libspectre'
|
||||
'ebook-tools')
|
||||
makedepends=('pkg-config'
|
||||
'cmake'
|
||||
'automoc4'
|
||||
'qca')
|
||||
source=("$_mirror/${_pkgname}-$_kdever.tar.xz")
|
||||
sha1sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
||||
|
||||
build() {
|
||||
|
||||
msg "starting build ..."
|
||||
cd ${srcdir}/${_pkgname}-${pkgver}
|
||||
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DWITH_ActiveApp=OFF \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||
|
||||
make || return 1
|
||||
cd ${srcdir}/${_pkgname}-${pkgver}
|
||||
cmake . \
|
||||
-DCMAKE_BUILD_TYPE=${_build_type} \
|
||||
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
||||
-DCMAKE_SKIP_RPATH=ON \
|
||||
-DKDE4_BUILD_TESTS=OFF \
|
||||
-DWITH_ActiveApp=OFF \
|
||||
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${_pkgname}-${pkgver}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
cd ${srcdir}/${_pkgname}-${pkgver}
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user