Overlay/games-puzzle/charley/charley-9999.ebuild

53 lines
1.0 KiB
Bash
Raw Normal View History

2012-12-14 14:09:30 +04:00
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2022-08-05 09:05:30 +03:00
EAPI="7"
2012-12-14 14:09:30 +04:00
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/masterfri/Charley.git"}
2015-10-12 19:44:08 +03:00
inherit git-r3
2012-12-14 14:09:30 +04:00
KEYWORDS=""
else
SRC_URI="https://github.com/masterfri/charley/archive/${P}.zip"
KEYWORDS="-* ~x86 ~amd64"
fi
DESCRIPTION="A ghost called Charley who wanders in deserted castle."
HOMEPAGE="http://masterfri.org.ua/charley/en/"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
DEPEND="virtual/opengl
media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/sdl-ttf"
RDEPEND="${DEPEND}"
2012-12-26 13:59:41 +04:00
INSTALL_BASE="usr"
src_compile() {
make PREFIX=/usr
}
2012-12-14 14:09:30 +04:00
src_install() {
local BASE=${INSTALL_BASE}
2012-12-26 13:59:41 +04:00
mkdir -p ${D}/${BASE}/share/charleygame
cp -R build/*/ ${D}/${BASE}/share/charleygame
mkdir -p ${D}/${BASE}/bin
cp build/charleygame-bin ${D}/${BASE}/bin
2012-12-14 14:09:30 +04:00
2012-12-26 13:59:41 +04:00
chmod a+x ${D}/${BASE}/bin/charleygame-bin
2012-12-14 14:09:30 +04:00
2012-12-26 13:59:41 +04:00
mkdir -p ${D}/${BASE}/bin
chmod a+x ${D}/${BASE}/bin/charleygame-bin.sh
2012-12-14 14:09:30 +04:00
}