4f75cf25fd
```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 ```
23 lines
805 B
Bash
23 lines
805 B
Bash
# Template file for 'tc-play'
|
|
pkgname=tc-play
|
|
version=3.3
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="-f Makefile.classic PBKDF_BACKEND=gcrypt"
|
|
make_build_target="tcplay"
|
|
make_install_args="-f Makefile.classic PBKDF_BACKEND=gcrypt SBINDIR=/usr/bin"
|
|
make_install_target="install_program"
|
|
makedepends="device-mapper-devel libuuid-devel libgcrypt-devel"
|
|
short_desc="Free and simple TrueCrypt implementation based on dm-crypt"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-clause"
|
|
homepage="https://github.com/bwalex/tc-play"
|
|
distfiles="https://github.com/bwalex/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=ad53cd814a23b4f61a1b2b6dc2539624ffb550504c400c45cbd8cd1da4c7d90a
|
|
|
|
pre_build() {
|
|
sed -i Makefile.classic -e"s; -o tcplay; ${LDFLAGS}&;"
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|