void-packages/srcpkgs/qpdfview/template

27 lines
852 B
Bash

# Template file for 'qpdfview'
pkgname=qpdfview
version=0.4.15
revision=1
hostmakedepends="pkg-config"
makedepends="qt5-tools qt5-svg-devel poppler-qt5-devel libspectre-devel
djvulibre-devel file-devel cups-devel"
depends="desktop-file-utils hicolor-icon-theme qt5-plugin-sqlite"
short_desc="A tabbed document viewer"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://launchpad.net/qpdfview"
license="GPL-2"
distfiles="https://launchpad.net/${pkgname}/trunk/${version}/+download/${pkgname}-${version}.tar.gz"
checksum=a2dca83bc12c1241fc0603f8fb029a5d5011c68f9266d4a3a804fb75bf00f271
do_configure() {
lrelease ${pkgname}.pro
qmake QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LFLAGS="${LDFLAGS}" QMAKE_STRIP="" ${pkgname}.pro
}
do_build() {
make ${makejobs}
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install
}