a03d116397
```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 ```
24 lines
867 B
Bash
24 lines
867 B
Bash
# Template file for 'endless-sky-gl21'
|
|
pkgname=endless-sky-gl21
|
|
version=0.9.2.20170822
|
|
revision=2
|
|
_commit=fc707954b0eb61ff2bb6888c5712e6b55d1c2f91
|
|
wrksrc="endless-sky-${_commit}"
|
|
build_style=scons
|
|
hostmakedepends="scons"
|
|
makedepends="SDL2-devel glew-devel libjpeg-turbo-devel libmad-devel libopenal-devel libpng-devel"
|
|
depends="${pkgname}-data"
|
|
conflicts="endless-sky endless-sky-data"
|
|
short_desc="Space exploring, trading, and combat game. opengl21 version"
|
|
maintainer="Benjamín Albiñana <benalb@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/SolraBizna/endless-sky"
|
|
distfiles="https://github.com/SolraBizna/endless-sky/archive/${_commit}.tar.gz"
|
|
checksum=46918d0cc35aaeb1219194099223e3338245aa04aa3f29fd76e3376bf5779376
|
|
|
|
endless-sky-gl21-data_package() {
|
|
short_desc+=" - data files"
|
|
pkg_install() {
|
|
vmove usr/share/games/endless-sky
|
|
}
|
|
}
|