Initial import
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# 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/"
|
||||
}
|
||||
Reference in New Issue
Block a user