* 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 ```
31 lines
873 B
Bash
31 lines
873 B
Bash
# Template file for 'gtkspell'
|
|
pkgname=gtkspell
|
|
version=2.0.16
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="intltool pkg-config"
|
|
makedepends="enchant2-devel gtk+-devel"
|
|
short_desc="Provides word-processor-style highlighting"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://gtkspell.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
|
|
|
|
post_patch() {
|
|
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' \
|
|
-e 's/enchant/enchant-2/g' \
|
|
configure
|
|
}
|
|
|
|
gtkspell-devel_package() {
|
|
depends="gtk+-devel ${sourcepkg}>=${version}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|