From 4aa79e884ac8577ca5ab9e683882959f4dfe1ce4 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 26 Feb 2016 01:21:18 +0100 Subject: [PATCH] games-board/capicity: initial import of version 1.0 --- .../capicity/capicity-1.0.exheres-0 | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 packages/games-board/capicity/capicity-1.0.exheres-0 diff --git a/packages/games-board/capicity/capicity-1.0.exheres-0 b/packages/games-board/capicity/capicity-1.0.exheres-0 new file mode 100644 index 00000000..2684bf62 --- /dev/null +++ b/packages/games-board/capicity/capicity-1.0.exheres-0 @@ -0,0 +1,62 @@ +# Copyright 2015-2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require gtk-icon-cache +require qmake [ slot=4 ] + +SUMMARY="A monopd compatible boardgame to play Monopoly-like games (previously named capitalism)" +HOMEPAGE="http://linux-ecke.de/CapiCity/" +DOWNLOADS="mirror://sourceforge/project/capitalism/Capi%20City/${PV}/Capid_${PV}.tar.gz + mirror://sourceforge/project/capitalism/Capi%20City/${PV}/CapiCity_${PV}.tar.gz" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + build+run: + x11-libs/qt:4 +" + +WORK=${WORKBASE} + +src_configure() { + edo cd "${WORK}"/Capid_${PV} + EQMAKE_SOURCES="Capid.pro" eqmake + edo cd "${WORK}"/CapiCity_${PV} + EQMAKE_SOURCES="CapiCity.pro" eqmake +} + +src_compile() { + emake -C "${WORK}"/Capid_${PV} + emake -C "${WORK}"/CapiCity_${PV} +} + +src_install() { + local res + + dobin "${WORK}"/Capid_${PV}/Capid + dodoc "${WORK}"/Capid_${PV}/doc/* + + dobin "${WORK}"/CapiCity_${PV}/CapiCity + dodoc "${WORK}"/CapiCity_${PV}/{changelog,README} + + for res in 16 22 24 32 48 64; do + insinto /usr/share/icons/hicolor/${rex}x${res}/apps + newins "${WORK}"/CapiCity_${PV}/icons/${res}x${res}.png ${PN}.png + done + + insinto /usr/share/applications + hereins ${PN}.desktop << EOF +[Desktop Entry] +Name=CapiCity +Comment=${SUMMARY} +Exec=CapiCity +Icon=${PN} +Terminal=false +Type=Application +Categories=Game;BoardGame; +EOF +} +