* 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 ```
29 lines
998 B
Bash
29 lines
998 B
Bash
# Template file for 'gnome-latex'
|
|
pkgname=gnome-latex
|
|
version=3.38.0
|
|
revision=2
|
|
build_helper="gir"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-appstream-util --disable-dconf-migration
|
|
$(vopt_enable gir introspection)"
|
|
hostmakedepends="glib-devel intltool itstool pkg-config vala yelp
|
|
$(vopt_if gir gobject-introspection)"
|
|
makedepends="gsettings-desktop-schemas-devel gspell-devel gtksourceview4-devel
|
|
gtk+3-devel libgee08-devel libglib-devel tepl-devel"
|
|
short_desc="LaTeX editor for the GNOME desktop"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://wiki.gnome.org/Apps/GNOME-LaTeX"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=a82a9fc6f056929ea18d6dffd121e71b2c21768808c86ef1f34da0f86e220d77
|
|
|
|
# for 00-port-to-tepl-6.patch
|
|
hostmakedepends+=" automake gettext-devel-tools libtool"
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
pre_configure() {
|
|
# for 00-port-to-tepl-6.patch
|
|
autoreconf -fi
|
|
}
|