diff --git a/srcpkgs/freeciv-qt5 b/srcpkgs/freeciv-qt5 new file mode 120000 index 0000000000..5c9f356a80 --- /dev/null +++ b/srcpkgs/freeciv-qt5 @@ -0,0 +1 @@ +freeciv \ No newline at end of file diff --git a/srcpkgs/freeciv/template b/srcpkgs/freeciv/template index c082b18aab..df01da1780 100644 --- a/srcpkgs/freeciv/template +++ b/srcpkgs/freeciv/template @@ -1,6 +1,6 @@ # Template file for 'freeciv' pkgname=freeciv -version=2.5.2 +version=2.5.3 revision=1 build_style=gnu-configure configure_args="--disable-static --enable-fcdb=sqlite3 --enable-fcmp=all @@ -11,11 +11,17 @@ makedepends="bzip2-devel liblzma-devel sqlite-devel freetype-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 " +maintainer="bra1nwave " license="GPL-2" homepage="http://freeciv.wikia.com/wiki/Main_Page" -distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}-${version}.tar.bz2" -checksum=2b5665da849c8f95b9225857fc02935140de2d44cd1a112f9cf3086a84d0b5be +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* @@ -42,6 +48,16 @@ freeciv-gtk3_package() { 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}" @@ -60,4 +76,3 @@ freeciv-xaw_package() { vmove usr/share/man/man6/*xaw* } } -