void-packages/srcpkgs/freeciv/template
Jürgen Buchmüller b8918e2a7d lua: update to 5.3.1
+ Rename lua and lua-devel to lua52 and lua52-devel
+ Modify packages depending on lua52 accordingly:
+ Many packages auto-detect lua52 files
+ Some packages need hints where / how to find lua52
+ One package (xmoto) downgraded to lua51, because it wouldn't find lua52
+ One package (vim) upgraded to lua (5.3.1)

There may be more packages upgradable without problems.
I didn't want to change too much in this move without the
respective package maintainers first taking a look.

Most notably conky-cli wouldn't work with lua52. I upgraded it
to 1.10.0 (same as conky) and tried to keep the flags the same
for the change from gnu-configure to cmake.
2015-10-02 11:24:59 +02:00

63 lines
2 KiB
Bash

# Template file for 'freeciv'
pkgname=freeciv
version=2.5.1
revision=2
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="Juhani Imberg <juhani@imberg.fi>"
license="GPL-2"
homepage="http://freeciv.wikia.com/wiki/Main_Page"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=4e420a9ad91aa7966039ec3b63501725c8261a4ff734d56fe801414fae772696
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-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*
}
}