861ac185a6
```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 ```
41 lines
1 KiB
Bash
41 lines
1 KiB
Bash
# Template file for 'libgfshare'
|
|
pkgname=libgfshare
|
|
version=2.0.0
|
|
revision=4
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
short_desc="Shamir's secret-sharing method in the Galois Field GF(2**8)"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="MIT"
|
|
homepage="https://git.gitano.org.uk/libgfshare.git"
|
|
distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
|
|
checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYRIGHT
|
|
}
|
|
|
|
libgfshare-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libgfshare-tools_package() {
|
|
short_desc="gfsplit and gfcombine tools for multi-way secret-sharing"
|
|
pkg_install() {
|
|
vmove usr/bin/gfcombine
|
|
vmove usr/bin/gfsplit
|
|
vmove usr/share/man/man1/gfcombine.1
|
|
vmove usr/share/man/man1/gfsplit.1
|
|
}
|
|
}
|