```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 ```
17 lines
523 B
Bash
17 lines
523 B
Bash
# Template file for 'berry'
|
|
pkgname=berry
|
|
version=0.1.7
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
makedepends="libX11-devel libXinerama-devel libXft-devel freetype-devel"
|
|
short_desc="Healthy, bite-sized window manager"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/JLErvin/berry"
|
|
distfiles="https://github.com/JLErvin/berry/archive/${version}.tar.gz"
|
|
checksum=1d6de883a0cd96ceb167c5ad2e855b0b15fa84872d41a22e05d0fdf0cf4be6b8
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|