1a06b0d5d7
```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 ```
22 lines
645 B
Bash
22 lines
645 B
Bash
# Template file for 'jsonnet'
|
|
pkgname=jsonnet
|
|
version=0.17.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
short_desc="Data templating language"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/google/jsonnet"
|
|
distfiles="https://github.com/google/jsonnet/archive/v${version}.tar.gz"
|
|
checksum=076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe
|
|
|
|
CXXFLAGS="-fPIC -Iinclude -Ithird_party/json -Ithird_party/md5"
|
|
|
|
jsonnet-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc="${short_desc} - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|