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 ```
19 lines
556 B
Bash
19 lines
556 B
Bash
# Template file for 'codecrypt'
|
|
pkgname=codecrypt
|
|
version=1.8
|
|
revision=4
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="crypto++-devel fftw-devel gmp-devel"
|
|
short_desc="Post-quantum cryptography tool"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://e-x-a.org/codecrypt"
|
|
distfiles="https://github.com/exaexa/codecrypt/archive/v${version}.tar.gz"
|
|
checksum=25f11bc361b4f8aca7245698334b5715b7d594d708a75e8cdb2aa732dc46eb96
|
|
|
|
LDFLAGS="-lpthread"
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|