7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```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 ```
32 lines
809 B
Bash
32 lines
809 B
Bash
# Template file for 'gosu'
|
|
pkgname=gosu
|
|
version=0.14.5
|
|
revision=1
|
|
build_style=cmake
|
|
build_wrksrc=cmake
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libopenal-devel libsndfile-devel mpg123-devel pango-devel
|
|
SDL2_ttf-devel"
|
|
short_desc="2D game development library"
|
|
maintainer="Paul Merrill <pdm@pdm.me>"
|
|
license="MIT"
|
|
homepage="https://www.libgosu.org"
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=4dbc4998e2c630ee7758544de4286c70c68e639524b6088ccdc7b5487c928695
|
|
|
|
CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
|
|
|
|
post_install() {
|
|
vlicense ../COPYING
|
|
}
|
|
|
|
gosu-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share/pkgconfig
|
|
vmove usr/share/Gosu
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|