jtc-overlay/games-roguelike/shattered-pixel-bin/shattered-pixel-bin-0.8.0b.ebuild

40 lines
883 B
Bash
Raw Permalink Normal View History

2022-08-30 19:46:53 +00:00
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Traditional roguelike game with pixel-art graphics and simple interface"
HOMEPAGE="https://github.com/00-Evan/shattered-pixel-dungeon"
SRC_URI="https://github.com/00-Evan/shattered-pixel-dungeon/releases/download/v${PV}/ShatteredPD-v${PV}-Desktop.jar -> ${P}.jar"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_unpack() {
mkdir -p "${S}"
cp "${DISTDIR}/${A}" "${WORKDIR}/"
}
src_configure() {
true
}
src_compile() {
true
}
src_install() {
local dest="/opt/${PN%-bin}"
local ddest="${ED}/${dest#/}"
mkdir -p "${ddest}/lib"
cp "${WORKDIR}/${P}.jar" "${ddest}/lib/shattered-pixel.jar"
mkdir -p "${ED}/usr/share/applications"
cp "${FILESDIR}/shattered-pixel.desktop" "${ED}/usr/share/applications/"
}