```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 ```
20 lines
508 B
Bash
20 lines
508 B
Bash
# Template file for 'tmines'
|
|
pkgname=tmines
|
|
version=1.0
|
|
revision=2
|
|
build_style=cmake
|
|
makedepends="ncurses-devel"
|
|
short_desc="Terminal minesweeper clone"
|
|
maintainer="SolitudeSF <solitudesf@protonmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/tropf/tmines"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=7b5037c7cedd6c744ec63d10fa59b415e5e3654e52b0cfda561ac545af8576cf
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) makedepends+=" argp-standalone";;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|