games-board/openriichi: new package

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2020-11-03 00:51:52 +03:00
parent 29a3d397e8
commit bdbd29a11e
3 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST openriichi-0.2.1.1-Engine.tar.gz 218488 BLAKE2B ed7ee3b61451bef95511d629d693018db9505c2f7e377a5d02afbefc40e1412db13e472ea2e8a0f1c745655bc24bdff898b16f1c3c8d055dcdd9a1fcf0fad01f SHA512 d24a59932a8bec02d9a0ef065c27fa5f162334a67095a351808ed330fd5f5312cc598a328745d19b5a3016192677b1d85dbaa870a6990ac861df78d302eb4d21
DIST openriichi-0.2.1.1.tar.gz 43434864 BLAKE2B 97b0409175572f3633ea322c1012cb3f5c1a38bfc47b91d120cc3fa570aaa215d59dad05fc4947165e6dc80428b6e34c1c74d0b1b1f910c3829a4b0c3941eec0 SHA512 226ef1a139db7afad1780309161b3e4868e1280493715606b54b89a09355e25deffa7a42b658a74f921be9265a23f326856243765fba64cbc3b710dd759d6553

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>torokhov-s-a@yandex.ru</email>
<name>Sergey Torokhov</name>
</maintainer>
<longdescription>
OpenRiichi is an open source Japanese Mahjong client written in the Vala programming language.
It supports singleplayer and multiplayer, with or without bots.
It features all the standard riichi rules, as well as some optional ones.
It also supports game logging, so games can be viewed again.
</longdescription>
<upstream>
<remote-id type="github">FluffyStuff/OpenRiichi</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop meson vala xdg
Engine_sha="e495846970a1b38d00c81a3f74568030f976ed31"
MY_PN="OpenRiichi"
DESCRIPTION="OpenRiichi is an open source Japanese Mahjong client"
HOMEPAGE="https://github.com/FluffyStuff/${MY_PN}"
SRC_URI="
https://github.com/FluffyStuff/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/FluffyStuff/Engine/archive/${Engine_sha}.tar.gz -> ${P}-Engine.tar.gz
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror"
S="${WORKDIR}/${MY_PN}-${PV}"
RDEPEND="
dev-libs/glib
dev-libs/gobject-introspection
dev-libs/libgee:0.8
media-libs/glew:0
media-libs/libsdl2[haptic,joystick,opengl,sound,threads,video]
media-libs/sdl2-image[jpeg,png,tiff,webp]
media-libs/sdl2-mixer
sys-libs/glibc
sys-libs/zlib
x11-libs/gtk+:3
x11-libs/pango
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
mv -T "${WORKDIR}/Engine-${Engine_sha}" "${S}/Engine" || die
vala_src_prepare
}
src_install() {
meson_src_install
newicon -s 64 "bin/Data/Icon.png" "${MY_PN}.png"
make_desktop_entry "${MY_PN}" "${MY_PN}" "${MY_PN}" "Game;BoardGame" || die "Failed making desktop entry!"
}