c987560802
```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 ```
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'crypto++'
|
|
pkgname=crypto++
|
|
reverts="820_2"
|
|
version=8.3.0
|
|
revision=1
|
|
wrksrc="${pkgname//+/p}-CRYPTOPP_${version//./_}"
|
|
build_style=gnu-makefile
|
|
make_build_args="PREFIX=/usr"
|
|
make_build_target="dynamic static libcryptopp.pc"
|
|
make_install_target="install-lib"
|
|
short_desc="Free C++ class library of cryptographic schemes"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSL-1.0"
|
|
homepage="http://www.cryptopp.com/"
|
|
distfiles="https://github.com/weidai11/cryptopp/archive/CRYPTOPP_${version//./_}.tar.gz"
|
|
checksum=63304c6f943f435a4e385273e15abb69cff3b85a44663150bf5a6069b84abd43
|
|
|
|
CXXFLAGS="-DNDEBUG -fPIC"
|
|
|
|
if [ "$XBPS_CROSS" ]; then
|
|
make_build_args+=" -f GNUmakefile-cross"
|
|
fi
|
|
|
|
do_check() {
|
|
# The gnu-makefile build style does not use ${makejobs}
|
|
make ${makejobs} ${make_build_args} check
|
|
}
|
|
|
|
post_install() {
|
|
vlicense License.txt LICENSE
|
|
}
|
|
|
|
crypto++-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|