75403cef76
```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 ```
30 lines
931 B
Bash
30 lines
931 B
Bash
# Template file for '7kaa'
|
|
pkgname=7kaa
|
|
version=2.15.4p1
|
|
revision=2
|
|
_v_7kaa_music=${version%.*}
|
|
build_style=gnu-configure
|
|
hostmakedepends="autoconf automake gettext-devel pkg-config tar"
|
|
makedepends="libcurl-devel libenet-devel libopenal-devel SDL2-devel"
|
|
short_desc="Seven Kingdoms: Ancient Adversaries"
|
|
maintainer="travankor <travankor@tuta.io>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://7kfans.com/"
|
|
distfiles="https://github.com/the3dfxdude/7kaa/releases/download/v${version}/${pkgname}-${version}.tar.xz
|
|
https://www.7kfans.com/downloads/${pkgname}-music-${_v_7kaa_music}.tar.bz2"
|
|
checksum="f0265c077025d77b435f1c10b8ba178bdb16329e51ab735330ebaa71a104fbf8
|
|
b0d767b6e25719a14f5f34a93744a8022d7bc24af66275bee54dfc788695c1c3"
|
|
replaces="7kaa-data>=0"
|
|
|
|
post_extract() {
|
|
mv ../7kaa-music .
|
|
}
|
|
|
|
pre_configure() {
|
|
autoreconf -vfi
|
|
}
|
|
|
|
post_install() {
|
|
vcopy 7kaa-music/MUSIC usr/share/7kaa
|
|
vlicense 7kaa-music/COPYING-Music.txt
|
|
}
|