b6bcd8cd34
* daemontools and dmraid is kept at -Np0 ```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 ```
26 lines
869 B
Bash
26 lines
869 B
Bash
# Template file for 'djview'
|
|
pkgname=djview
|
|
version=4.12
|
|
revision=3
|
|
wrksrc="djview4-${version}"
|
|
build_style=gnu-configure
|
|
build_helper=qmake
|
|
configure_args="ac_cv_path_QMAKE=${XBPS_WRAPPERDIR}/qmake-qt5"
|
|
hostmakedepends="automake pkg-config qt5-host-tools qt5-qmake libtool"
|
|
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=5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3
|
|
|
|
post_extract() {
|
|
vsed -i -e '/Exec/s/djview4/djview/' \
|
|
-e '/StartupWMClass/s/Djview4/DjView/' \
|
|
desktopfiles/djvulibre-djview4.desktop
|
|
}
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|