void-packages/srcpkgs/goldendict/template

27 lines
927 B
Bash

# Template file for 'goldendict'
pkgname=goldendict
version=1.5.0
revision=1
build_style=qmake
configure_args="CONFIG+=zim_support goldendict.pro"
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
makedepends="tiff-devel qt5-devel libvorbis-devel zlib-devel
libXtst-devel hunspell-devel qt5-tools-devel qt5-declarative-devel
qt5-webkit-devel lzo-devel bzip2-devel libao-devel qt5-svg-devel
libeb-devel qt5-x11extras-devel ffmpeg-devel liblzma-devel
qt5-multimedia-devel"
short_desc="A feature-rich dictionary lookup program"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="http://goldendict.org/"
distfiles="https://github.com/goldendict/goldendict/archive/${version}.tar.gz"
checksum=f9f8e068ece74cc026fdc5f56615246228b4e70c97c7197ccd4c14ceae412c7c
post_patch() {
vsed -e '/VERSION/ s/+git//' -i goldendict.pro
}
post_install() {
chmod 644 ${DESTDIR}/usr/share/pixmaps/goldendict.png
}