765e304c4b
```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 ```
27 lines
807 B
Bash
27 lines
807 B
Bash
# Template file for 'minijail'
|
|
pkgname=minijail
|
|
version=16
|
|
revision=1
|
|
wrksrc="${pkgname}-linux-v${version}"
|
|
build_style=gnu-makefile
|
|
makedepends="libcap-devel"
|
|
short_desc="Sandboxing and containment tool used in Chrome OS and Android"
|
|
maintainer="Cameron Nemo <cnemo@tutanota.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://android.googlesource.com/platform/external/minijail"
|
|
distfiles="https://github.com/google/minijail/archive/linux-v${version}.tar.gz"
|
|
checksum=1efb6224465cf8a5bb7a69659b35482e69786fce572f29125201e9a0e793bdd6
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="bpf.h:110:2: error: #error Unsupported endianness"
|
|
fi
|
|
|
|
do_install() {
|
|
vbin minijail0
|
|
vmkdir usr/lib
|
|
vcopy libminijail.so usr/lib
|
|
vcopy libminijailpreload.so usr/lib
|
|
vman minijail0.1
|
|
vman minijail0.5
|
|
vlicense LICENSE
|
|
}
|