c987560802
```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 ```
25 lines
914 B
Bash
25 lines
914 B
Bash
# Template file for 'celestia-glut'
|
|
pkgname=celestia-glut
|
|
version=1.6.1
|
|
revision=6
|
|
wrksrc="celestia-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-glut --with-lua --enable-theora --disable-static"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gtkglext-devel zlib-devel lua51-devel glu-devel libfreeglut-devel
|
|
libjpeg-turbo-devel libpng-devel libtheora-devel"
|
|
short_desc="Free space simulation using GLUT"
|
|
maintainer="Martin Riese <grauehaare@gmx.de>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://celestia.space"
|
|
distfiles="${SOURCEFORGE_SITE}/celestia/celestia-${version}.tar.gz"
|
|
checksum="d35570ccb9440fc0bd3e73eb9b4c3e8a4c25f3ae444a13d1175053fa16dc34c4"
|
|
|
|
provides="celestia-${version}_${revision}"
|
|
replaces="celestia>=0"
|
|
|
|
do_configure() {
|
|
CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
|
|
LIBS="-lpng -ljpeg -llua5.1 -lglut -lGLU -lGL -logg -ltheora -lz -ldl -pthread" \
|
|
./configure ${configure_args}
|
|
}
|