void-packages/srcpkgs/freeciv/template

74 lines
2.3 KiB
Bash

# Template file for 'freeciv'
pkgname=freeciv
version=2.6.5
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-fcdb=sqlite3 --enable-fcmp=all"
hostmakedepends="pkg-config"
makedepends="SDL2_gfx-devel SDL2_image-devel SDL2_mixer-devel SDL2_ttf-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/"
changelog="https://freeciv.fandom.com/wiki/NEWS-${version}"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=2e64e1c74dae12acb17bbf5daa980efc7e9fd57820afed5135319ca95291ec59
_clients="gtk3,sdl2,xaw"
subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
if [ -z "$CROSS_BUILD" ]; then
_clients+=",qt"
makedepends+=" qt5-devel"
subpackages+=" freeciv-qt5"
fi
configure_args+=" --enable-client=${_clients}"
post_install() {
rm ${DESTDIR}/usr/lib/*.a
}
freeciv-gtk2_package() {
build_style=meta
short_desc="Freeciv GTK+3 client (transitional dummy package)"
depends="freeciv-gtk3>=${version}_${revision}"
}
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*"
}
}
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*"
}
}