```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
625 B
Bash
20 lines
625 B
Bash
# Template file for 'ckmame'
|
|
pkgname=ckmame
|
|
version=1.0
|
|
revision=2
|
|
wrksrc=${pkgname}-rel-${version//./-}
|
|
build_style=cmake
|
|
build_helper=qemu
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libxml2-devel libzip-devel sqlite-devel"
|
|
checkdepends="perl"
|
|
short_desc="Program to check ROM sets for MAME"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-clause"
|
|
homepage="https://nih.at/ckmame/"
|
|
distfiles="https://github.com/nih-at/ckmame/archive/rel-${version//./-}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=9fc5dcf1d2dd75351b2cdf43ce10fecda7d97c8c1a8dd0fe1f653229bb316130
|
|
|
|
post_install() {
|
|
vlicense ${wrksrc}/LICENSE
|
|
}
|