2016-02-26 00:21:18 +00:00
|
|
|
# Copyright 2015-2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-05-26 12:05:55 +00:00
|
|
|
require desktop-utils gtk-icon-cache
|
2016-02-26 00:21:18 +00:00
|
|
|
require qmake [ slot=4 ]
|
2016-04-22 14:10:55 +00:00
|
|
|
require sourceforge [ project=capitalism pnv=CapiCity_${PV} suffix=tar.gz ]
|
2016-02-26 00:21:18 +00:00
|
|
|
|
|
|
|
SUMMARY="A monopd compatible boardgame to play Monopoly-like games (previously named capitalism)"
|
|
|
|
HOMEPAGE="http://linux-ecke.de/CapiCity/"
|
2016-04-22 14:10:55 +00:00
|
|
|
DOWNLOADS+=" mirror://sourceforge/project/capitalism/Capi%20City/${PV}/Capid_${PV}.tar.gz"
|
2016-02-26 00:21:18 +00:00
|
|
|
|
|
|
|
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() {
|
2016-02-26 00:21:37 +00:00
|
|
|
local res
|
2016-02-26 00:21:18 +00:00
|
|
|
|
|
|
|
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
|
2016-02-26 00:26:34 +00:00
|
|
|
insinto /usr/share/icons/hicolor/${res}x${res}/apps
|
2016-02-26 00:21:18 +00:00
|
|
|
newins "${WORK}"/CapiCity_${PV}/icons/${res}x${res}.png ${PN}.png
|
|
|
|
done
|
|
|
|
|
2016-05-26 12:05:55 +00:00
|
|
|
install_desktop_entry "Name=CapiCity" "Exec=CapiCity"
|
2016-02-26 00:21:18 +00:00
|
|
|
}
|
|
|
|
|