* fpc is kept at -Np0 ```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 ```
77 lines
2.4 KiB
Bash
77 lines
2.4 KiB
Bash
# Template file for 'freeciv'
|
|
pkgname=freeciv
|
|
version=2.6.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-fcdb=sqlite3 --enable-fcmp=all
|
|
--enable-client=all"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2_gfx-devel SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel gtk+-devel
|
|
gtk+3-devel libXaw-devel libcurl-devel lua53-devel"
|
|
short_desc="Free and Open Source empire-building strategy game - server/data"
|
|
maintainer="bra1nwave <bra1nwave@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://freeciv.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=6181ef3d3c76264383aabbe0eaf1550d8a65ca42639e6c17cc2938165e176c8f
|
|
|
|
subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
makedepends+=" qt5-devel"
|
|
subpackages+=" freeciv-qt5"
|
|
fi
|
|
|
|
post_install() {
|
|
rm ${DESTDIR}/usr/bin/*stub*
|
|
rm ${DESTDIR}/usr/lib/*.a
|
|
}
|
|
|
|
freeciv-gtk2_package() {
|
|
short_desc="Free and Open Source empire-building strategy game - GTK+ client"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/bin/*gtk2*"
|
|
vmove "usr/share/appdata/*gtk2*"
|
|
vmove "usr/share/man/man6/*gtk2*"
|
|
vmove "usr/share/applications/*gtk2*"
|
|
}
|
|
}
|
|
freeciv-gtk3_package() {
|
|
short_desc="Free and Open Source empire-building strategy game - GTK+3 client"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/bin/*gtk3*"
|
|
vmove "usr/share/appdata/*gtk3*"
|
|
vmove "usr/share/man/man6/*gtk3*"
|
|
vmove "usr/share/applications/*gtk3*"
|
|
vmove "usr/share/applications/freeciv.desktop"
|
|
}
|
|
}
|
|
freeciv-qt5_package() {
|
|
short_desc="Free and Open Source empire-building strategy game - Qt5 client"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/bin/*qt*"
|
|
vmove "usr/share/appdata/*qt*"
|
|
vmove "usr/share/man/man6/*qt*"
|
|
vmove "usr/share/applications/*qt*"
|
|
}
|
|
}
|
|
freeciv-sdl_package() {
|
|
short_desc="Free and Open Source empire-building strategy game - SDL2 client"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/bin/*sdl*"
|
|
vmove "usr/share/appdata/*sdl*"
|
|
vmove "usr/share/man/man6/*sdl*"
|
|
vmove "usr/share/applications/*sdl*"
|
|
}
|
|
}
|
|
freeciv-xaw_package() {
|
|
short_desc="Free and Open Source empire-building strategy game - X11 client"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/bin/*xaw*"
|
|
vmove "usr/share/man/man6/*xaw*"
|
|
}
|
|
}
|