```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 ```
30 lines
894 B
Bash
30 lines
894 B
Bash
# Template file for 'c-blosc'
|
|
pkgname=c-blosc
|
|
version=1.20.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DPREFER_EXTERNAL_ZLIB=1 -DPREFER_EXTERNAL_LZ4=1
|
|
-DPREFER_EXTERNAL_SNAPPY=1 -DPREFER_EXTERNAL_ZSTD=1"
|
|
makedepends="zlib-devel liblz4-devel snappy-devel libzstd-devel"
|
|
short_desc="Blocking, shuffling and lossless compression library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause, MIT"
|
|
homepage="https://www.blosc.org"
|
|
distfiles="https://github.com/Blosc/c-blosc/archive/v${version}.tar.gz"
|
|
checksum=42c4d3fcce52af9f8e2078f8f57681bfc711706a3330cb72b9b39e05ae18a413
|
|
|
|
post_install() {
|
|
vlicense LICENSES/BLOSC.txt
|
|
vlicense LICENSES/BITSHUFFLE.txt
|
|
}
|
|
|
|
c-blosc-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|