80 lines
2.5 KiB
Bash
80 lines
2.5 KiB
Bash
# Template file for 'freeciv'
|
|
pkgname=freeciv
|
|
version=3.1.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-fcdb=sqlite3 --enable-fcmp=all"
|
|
hostmakedepends="pkg-config gettext"
|
|
makedepends="SDL2_gfx-devel SDL2_image-devel SDL2_mixer-devel SDL2_ttf-devel
|
|
gtk+3-devel libcurl-devel lua53-devel"
|
|
short_desc="Free and Open Source empire-building strategy game - server/data"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.freeciv.org/"
|
|
changelog="https://www.freeciv.org/wiki/NEWS"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=741086fa94574374c7c27480f77ee68e5b538bfb2eff85004fa8c87b312c7f2f
|
|
nopie_files="/usr/bin/freeciv-ruledit"
|
|
|
|
# gtk3.22 is a client supporting gtk+>=3.22
|
|
_clients="gtk3.22,sdl2"
|
|
subpackages="freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
_clients+=",qt"
|
|
makedepends+=" qt6-base-devel"
|
|
subpackages+=" freeciv-qt5 freeciv-qt6"
|
|
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/metainfo/*gtk3*"
|
|
vmove "usr/share/man/man6/*gtk3*"
|
|
vmove "usr/share/applications/*gtk3*"
|
|
}
|
|
}
|
|
freeciv-qt5_package() {
|
|
build_style=meta
|
|
short_desc="Freeciv - Qt5 client (transitional dummy package)"
|
|
depends="freeciv-qt6>=${version}_${revision}"
|
|
}
|
|
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/metainfo/*sdl*"
|
|
vmove "usr/share/man/man6/*sdl*"
|
|
vmove "usr/share/applications/*sdl*"
|
|
}
|
|
}
|
|
freeciv-xaw_package() {
|
|
build_style=meta
|
|
short_desc="Freeciv GTK+3 client (transitional dummy package)"
|
|
depends="freeciv-gtk3>=${version}_${revision}"
|
|
}
|
|
|
|
freeciv-qt6_package() {
|
|
short_desc="Free and Open Source empire-building strategy game - Qt6 client"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
nopie_files="/usr/bin/freeciv-mp-qt"
|
|
pkg_install() {
|
|
vmove "usr/bin/*qt*"
|
|
vmove "usr/share/metainfo/*qt*"
|
|
vmove "usr/share/man/man6/*qt*"
|
|
vmove "usr/share/applications/*qt*"
|
|
}
|
|
}
|