From d0092e4e57078a14525a7ff853b7e577f213c265 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 May 2015 08:06:30 +0200 Subject: [PATCH] freeciv: multiple random changes. - Remove static libraries (useless). - Use system lua not the included one. - Added support for multiple clients splitted in subpkgs: gtk2, gtk3, sdl and xaw. Close #1519 --- srcpkgs/freeciv-gtk2 | 1 + srcpkgs/freeciv-gtk3 | 1 + srcpkgs/freeciv-sdl | 1 + srcpkgs/freeciv-xaw | 1 + srcpkgs/freeciv/template | 63 ++++++++++++++++++++++++++++++++++++---- 5 files changed, 61 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/freeciv-gtk2 create mode 120000 srcpkgs/freeciv-gtk3 create mode 120000 srcpkgs/freeciv-sdl create mode 120000 srcpkgs/freeciv-xaw diff --git a/srcpkgs/freeciv-gtk2 b/srcpkgs/freeciv-gtk2 new file mode 120000 index 0000000000..5c9f356a80 --- /dev/null +++ b/srcpkgs/freeciv-gtk2 @@ -0,0 +1 @@ +freeciv \ No newline at end of file diff --git a/srcpkgs/freeciv-gtk3 b/srcpkgs/freeciv-gtk3 new file mode 120000 index 0000000000..5c9f356a80 --- /dev/null +++ b/srcpkgs/freeciv-gtk3 @@ -0,0 +1 @@ +freeciv \ No newline at end of file diff --git a/srcpkgs/freeciv-sdl b/srcpkgs/freeciv-sdl new file mode 120000 index 0000000000..5c9f356a80 --- /dev/null +++ b/srcpkgs/freeciv-sdl @@ -0,0 +1 @@ +freeciv \ No newline at end of file diff --git a/srcpkgs/freeciv-xaw b/srcpkgs/freeciv-xaw new file mode 120000 index 0000000000..5c9f356a80 --- /dev/null +++ b/srcpkgs/freeciv-xaw @@ -0,0 +1 @@ +freeciv \ No newline at end of file diff --git a/srcpkgs/freeciv/template b/srcpkgs/freeciv/template index ed4e0852fa..c8d44aedac 100644 --- a/srcpkgs/freeciv/template +++ b/srcpkgs/freeciv/template @@ -1,12 +1,63 @@ -pkgname="freeciv" -version="2.5.0" -revision="1" +# Template file for 'freeciv' +pkgname=freeciv +version=2.5.0 +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="gtk+-devel libcurl-devel" -short_desc="Free and Open Source empire-building strategy game" +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 lua-devel" +short_desc="Free and Open Source empire-building strategy game - server/data" maintainer="Juhani Imberg " license="GPL-2" homepage="http://freeciv.wikia.com/wiki/Main_Page" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2" -checksum="bd9f7523ea79b8d2806d0c1844a9f48506ccd18276330580319913c43051210b" \ No newline at end of file +checksum="bd9f7523ea79b8d2806d0c1844a9f48506ccd18276330580319913c43051210b" + +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* + } +} +