7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
24 lines
900 B
Bash
24 lines
900 B
Bash
# Template file for 'goldendict'
|
|
pkgname=goldendict
|
|
version=1.5.0RC2
|
|
revision=5
|
|
wrksrc="${pkgname}-${version/RC/-RC}"
|
|
build_style=qmake
|
|
configure_args="CONFIG+=zim_support"
|
|
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"
|
|
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/RC/-RC}.tar.gz"
|
|
checksum=bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde
|
|
|
|
CXXFLAGS="-Wno-deprecated"
|
|
|
|
post_install() {
|
|
chmod 644 ${DESTDIR}/usr/share/pixmaps/goldendict.png
|
|
}
|