summaryrefslogtreecommitdiff
path: root/games-action/classicube/classicube-9999.ebuild
blob: 5badf618a9bc1f00fa5ee15b6705847ac96068b0 (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
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 toolchain-funcs

DESCRIPTION="Reverse-engineered Minecraft Classic client"
HOMEPAGE="https://www.classicube.net/"
EGIT_REPO_URI="https://github.com/ClassiCube/ClassiCube.git"

LICENSE="BSD MIT FTL"
SLOT="0"

DEPEND="x11-libs/libX11 x11-libs/libXi virtual/opengl"
RDEPEND="${DEPEND}"

src_compile() {
	$(tc-getCC) ${CFLAGS} ${LDFLAGS} src/*.c -o ClassiCube -rdynamic -lm -lpthread -lX11 -lXi -lGL -ldl || die
}

src_install() {
	exeinto "/usr/libexec"
	doexe ClassiCube
	dobin "${FILESDIR}/ClassiCube"
	dodoc readme.md
	dodoc doc/*.md
}