```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
728 B
Bash
27 lines
728 B
Bash
# Template file for 'snappy'
|
|
pkgname=snappy
|
|
version=1.1.9
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=1"
|
|
makedepends="zlib-devel lzo-devel gtest-devel benchmark-devel"
|
|
short_desc="Fast compressor/decompressor library"
|
|
maintainer="skmpz <dem.procopiou@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://google.github.io/snappy"
|
|
distfiles="https://github.com/google/snappy/archive/${version}.tar.gz"
|
|
checksum=75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
snappy-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|