25 lines
847 B
Bash
25 lines
847 B
Bash
# Template file for 'djview'
|
|
pkgname=djview
|
|
version=4.10.6
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper=qmake
|
|
configure_args="QMAKE=qmake-qt5"
|
|
hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
|
|
makedepends="qt5-devel djvulibre-devel libxkbcommon-devel libSM-devel libXt-devel"
|
|
short_desc="Portable DjVu viewer and browser plugin"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://djvu.sourceforge.net/djview4.html"
|
|
distfiles="${SOURCEFORGE_SITE}/djvu/${pkgname}-${version}.tar.gz"
|
|
checksum=8446f3cd692238421a342f12baa365528445637bffb96899f319fe762fda7c21
|
|
|
|
if [ "${CROSS_BUILD}" ]; then
|
|
configure_args+=" ac_cv_path_QMAKE=${XBPS_WRAPPERDIR}/qmake-qt5"
|
|
fi
|
|
|
|
post_extract() {
|
|
vsed -i -e '/Exec/s/djview4/djview/' \
|
|
-e '/StartupWMClass/s/Djview4/DjView/' \
|
|
desktopfiles/djvulibre-djview4.desktop
|
|
}
|