katarakt: fix build for poppler-qt5 20.09.0
This commit is contained in:
parent
613319828d
commit
c29a18ac06
2 changed files with 19 additions and 8 deletions
15
srcpkgs/katarakt/patches/not-an-octal-number.patch
Normal file
15
srcpkgs/katarakt/patches/not-an-octal-number.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- katarakt.pro.orig 2020-11-21 07:57:05.333858604 +0700
|
||||||
|
+++ katarakt.pro 2020-11-21 07:58:23.713527253 +0700
|
||||||
|
@@ -17,9 +17,9 @@
|
||||||
|
|
||||||
|
isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config # same as in link_pkgconfig.prf
|
||||||
|
POPPLER_VERSION = $$system($$PKG_CONFIG --modversion $$POPPLER)
|
||||||
|
- POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1)
|
||||||
|
- POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2)
|
||||||
|
- POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3)
|
||||||
|
+ POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1 | sed 's/^0*//' | sed 's/^$/0/')
|
||||||
|
+ POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2 | sed 's/^0*//' | sed 's/^$/0/')
|
||||||
|
+ POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3 | sed 's/^0*//' | sed 's/^$/0/')
|
||||||
|
|
||||||
|
DEFINES += POPPLER_VERSION_MAJOR=$$POPPLER_VERSION_MAJOR
|
||||||
|
DEFINES += POPPLER_VERSION_MINOR=$$POPPLER_VERSION_MINOR
|
|
@ -1,23 +1,19 @@
|
||||||
# Template file for 'katarakt'
|
# Template file for 'katarakt'
|
||||||
pkgname=katarakt
|
pkgname=katarakt
|
||||||
version=0.2
|
version=0.2
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="katarakt-v${version}"
|
wrksrc="katarakt-v${version}"
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
hostmakedepends="qt5-qmake pkg-config asciidoc"
|
hostmakedepends="qt5-qmake pkg-config asciidoc qt5-host-tools"
|
||||||
makedepends="qt5-devel poppler-qt5-devel"
|
makedepends="qt5-devel poppler-qt5-devel"
|
||||||
short_desc="A simple PDF viewer"
|
short_desc="Simple PDF viewer"
|
||||||
maintainer="Lukas Braun <void-packages@moshbit.net>"
|
maintainer="Lukas Braun <void-packages@moshbit.net>"
|
||||||
license="BSD"
|
license="BSD-2-Clause"
|
||||||
homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
|
homepage="https://wwwcip.cs.fau.de/~go18gomu/katarakt"
|
||||||
#distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
|
#distfiles="https://wwwcip.cs.fau.de/~go18gomu/katarakt/tarballs/katarakt-${version}.tar.xz"
|
||||||
distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
|
distfiles="https://gitlab.cs.fau.de/Qui_Sum/katarakt/-/archive/v${version}/katarakt-v${version}.tar.gz"
|
||||||
checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
|
checksum=f60b3b7477975301a6c6657eb0a24d5cc28d321cca70e9746d4d1ea91e239c46
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
hostmakedepends+=" qt5-devel"
|
|
||||||
fi
|
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
make doc
|
make doc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue