79 lines
2.4 KiB
Bash
79 lines
2.4 KiB
Bash
# Template file for 'freeciv'
|
|
pkgname=freeciv
|
|
version=2.5.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-fcdb=sqlite3 --enable-fcmp=all
|
|
--enable-sys-lua --enable-client=all"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="bzip2-devel liblzma-devel sqlite-devel freetype-devel
|
|
libXpm-devel libXaw-devel libXt-devel libXmu-devel
|
|
SDL_mixer-devel SDL_image-devel SDL_gfx-devel SDL_ttf-devel
|
|
gtk+-devel gtk+3-devel libcurl-devel lua52-devel"
|
|
short_desc="Free and Open Source empire-building strategy game - server/data"
|
|
maintainer="bra1nwave <brainwave@openmailbox.org>"
|
|
license="GPL-2"
|
|
homepage="http://freeciv.wikia.com/wiki/Main_Page"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=9e64ef047fd0d2f8e9aa1da01586dea7cfe63a36b15875c168ada555c2e6634b
|
|
|
|
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*
|
|
}
|
|
}
|
|
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 - SDL 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*
|
|
}
|
|
}
|