* 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 ```
19 lines
753 B
Bash
19 lines
753 B
Bash
# Template file for 'gnome-screensaver'
|
|
pkgname=gnome-screensaver
|
|
version=3.6.1
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--enable-compile-warnings=minimum"
|
|
hostmakedepends="pkg-config automake intltool glib-devel"
|
|
makedepends="gnome-desktop-devel dbus-glib-devel pam-devel"
|
|
depends="gnome-desktop libgnomekbd dbus"
|
|
short_desc="GNOME's screensaver that can replace xscreensaver"
|
|
maintainer="shizonic <realtiaz@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/GnomeScreensaver"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=f39b78d4f7fed748c7f0a31d694112fb907c6d3c4e63db22eb858df07e962cd0
|
|
|
|
post_patch() {
|
|
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
|
|
}
|