4b97cd2fb4
```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 ```
33 lines
1.3 KiB
Bash
33 lines
1.3 KiB
Bash
# Template file for 'supertuxkart'
|
|
pkgname=supertuxkart
|
|
version=1.2
|
|
revision=3
|
|
wrksrc="SuperTuxKart-${version}-src"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libgomp-devel libjpeg-turbo-devel libpng-devel
|
|
libbluetooth-devel glu-devel libvorbis-devel libXrandr-devel
|
|
libopenal-devel fribidi-devel libcurl-devel freetype-devel
|
|
libopenglrecorder-devel wayland-devel harfbuzz-devel libenet-devel
|
|
libogg-devel MesaLib-devel openssl-devel zlib-devel SDL2-devel glew-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme supertuxkart-data"
|
|
short_desc="Kart racing game featuring Tux and his friends"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://supertuxkart.net"
|
|
distfiles="https://github.com/${pkgname}/stk-code/releases/download/${version}/SuperTuxKart-${version}-src.tar.xz"
|
|
checksum=052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
supertuxkart-data_package() {
|
|
short_desc+=" - data files"
|
|
pkg_install() {
|
|
# these script only serve a prupose for developing, not to the package
|
|
rm "${DESTDIR}/usr/share/supertuxkart/data/po/extract_strings_from_XML.py"
|
|
rm "${DESTDIR}/usr/share/supertuxkart/data/po/update_po_authors.py"
|
|
vmove usr/share/supertuxkart
|
|
}
|
|
}
|