```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
870 B
Bash
26 lines
870 B
Bash
# Template file for 'xcolorsel'
|
|
pkgname=xcolorsel
|
|
version=1.1a
|
|
revision=4
|
|
wrksrc="${pkgname}-${version}.orig"
|
|
build_style=gnu-makefile
|
|
make_build_args="HELPFILE=/usr/share/X11/Xcolorsel.help"
|
|
make_install_args="install.man ${make_build_args}"
|
|
hostmakedepends="imake xorg-cf-files gccmakedep groff"
|
|
makedepends="libXaw-devel"
|
|
depends="rgb"
|
|
short_desc="Display and grab colors in X"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://packages.debian.org/stable/x11/xcolorsel"
|
|
distfiles="${DEBIAN_SITE}/main/x/${pkgname}/${pkgname}_${version}.orig.tar.gz"
|
|
checksum=ba0813af427dfab7dfbd9eaadbedd217d432f8141179ac43bb39393b1424f7a2
|
|
nocross=yes
|
|
|
|
do_configure() {
|
|
xmkmf -a -DHasSELinux=0 -DUseConfDirForAppDefaults=0
|
|
sed -i '/INSTALL/s,\$(XPALDIR)/Xcolorsel.help,$(HELPFILE),' Makefile
|
|
}
|
|
pre_build() {
|
|
export LOCAL_LDFLAGS="$LDFLAGS"
|
|
}
|