```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 ```
16 lines
622 B
Bash
16 lines
622 B
Bash
# Template file for 'xnots'
|
|
pkgname=xnots
|
|
version=0.2.1
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
make_build_args="CCOPT=\$CFLAGS"
|
|
make_install_args="prefix=/usr"
|
|
make_use_env=yes
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="libX11-devel libXrandr-devel pango-devel"
|
|
short_desc="Desktop sticky notes application for Unix geeks"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://xnots.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca
|