void-packages/srcpkgs/freeciv/template

79 lines
2.4 KiB
Bash
Raw Normal View History

# Template file for 'freeciv'
pkgname=freeciv
2016-02-09 13:14:25 +01:00
version=2.5.3
2016-02-01 19:08:21 +01:00
revision=1
2015-05-07 01:45:19 +02:00
build_style=gnu-configure
configure_args="--disable-static --enable-fcdb=sqlite3 --enable-fcmp=all
--enable-sys-lua --enable-client=all"
2015-05-07 01:45:19 +02:00
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"
2016-02-09 13:14:25 +01:00
maintainer="bra1nwave <brainwave@openmailbox.org>"
2015-05-07 01:45:19 +02:00
license="GPL-2"
homepage="http://freeciv.wikia.com/wiki/Main_Page"
2016-02-09 13:14:25 +01:00
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=480b0381c64bf1a9423f2507a75d76bda9bf45c3c3badd30b5bad105e75d805c
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*
}
}
2016-02-09 13:14:25 +01:00
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*
}
}