c6ce65d3d0
```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 ```
28 lines
1,012 B
Bash
28 lines
1,012 B
Bash
# Template file for 'bitfighter'
|
|
pkgname=bitfighter
|
|
version=019g
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DMASTER_MINIMAL=1 -DLUAJIT_BUILTIN=OFF"
|
|
hostmakedepends="pkg-config unzip"
|
|
makedepends="boost-devel MesaLib-devel SDL2-devel LuaJIT-devel
|
|
libopenal-devel libmariadbclient-devel libmodplug-devel
|
|
libpng-devel libtomcrypt-devel speex-devel
|
|
clipper-devel alure-devel"
|
|
depends="desktop-file-utils libmpg123"
|
|
short_desc="Fast-paced team-based outer-space multi-player arcade game"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://bitfighter.org/"
|
|
distfiles="http://bitfighter.org/files/${pkgname}-${version}.tar.gz
|
|
http://bitfighter.org/files/classic_level_pack.zip"
|
|
checksum="cd47c453d9e6875ded627b987a645e2ff2c757363f394b152f62d868e1d81427
|
|
d628a2b0af024a965b92877f321f2174d6309b7ce9236775af3bd86a67fcc72b"
|
|
python_version=2
|
|
replaces="bitfighter-data>=0"
|
|
|
|
CXXFLAGS="-Wno-narrowing"
|
|
|
|
post_install() {
|
|
vcopy ../classic_level_pack/* usr/share/bitfighter/levels
|
|
}
|