blob: 9228f4c91be63e9ab728ffdcba1d0198c4b7a062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHECKREQS_DISK_BUILD="1200M"
inherit desktop check-reqs xdg
DESCRIPTION="Narrative-driven, single-player adventure like mom used to make"
HOMEPAGE="https://mattmakesgames.itch.io/celeste"
SRC_URI="${PN}-linux.zip"
S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="bindist fetch splitdebug"
DIR="/opt/${PN}"
QA_PREBUILT="${DIR#/}/*"
RDEPEND="media-libs/libsdl2[joystick,opengl,sound,video]"
BDEPEND="app-arch/unzip"
pkg_nofetch() {
einfo "Please buy and download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to your distfiles directory."
}
src_prepare() {
default
rm -v \
lib*/libSDL2-2.0.so.0 \
lib*/libSDL2_image-2.0.so.0 \
lib*/libpng15.so.15 \
|| die
}
src_install() {
local \
arch=$(usex amd64 x86_64 x86) \
libdir=lib$(usex amd64 64 "")
insinto "${DIR}"
doins -r *.dll* Celeste.exe* Celeste*.pdb Content/ mono*
exeinto "${DIR}"
doexe Celeste.bin.${arch}
exeinto "${DIR}"/${libdir}
doexe ${libdir}/*.so*
newicon -s 512 Celeste.png ${PN}.png
dosym "../..${DIR}/Celeste.bin.${arch}" /usr/bin/${PN}
make_desktop_entry ${PN} Celeste
}
|