aboutsummaryrefslogtreecommitdiff
blob: efd32fc2aac25f171cc14c9e570adc0a08e325a7 (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
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop go-module

DEPS_DATE="2022-12-04" # when the deps archive has been created

DESCRIPTION="A nonlinear 2D puzzle platformer taking place in impossible spaces"
HOMEPAGE="https://divverent.github.io/aaaaxy/"
SRC_URI="
	https://github.com/divVerent/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://gitlab.com/api/v4/projects/41581401/packages/generic/${PN}/${PV}+${DEPS_DATE}/${P}-deps.tar.xz
"

LICENSE="Apache-2.0 BSD MIT || ( FTL GPL-2+ )"
SLOT="0"
KEYWORDS="~amd64"

RESTRICT="bindist" # possibly incompatible with GPL-2+

DEPEND="
	media-libs/alsa-lib
	media-libs/libglvnd
	x11-libs/libX11
"
RDEPEND="${DEPEND}"
BDEPEND="
	x11-libs/libXcursor
	x11-libs/libXi
	x11-libs/libXinerama
	x11-libs/libXrandr
"

src_configure() {
	GOFLAGS+=" -buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
}

src_compile() {
	emake AAAAXY_BUILD_USE_VERSION_FILE=true BUILDTYPE=release
}

src_install() {
	dobin ${PN}
	doicon -s scalable ${PN}.svg
	doicon -s 128 ${PN}.png
	domenu ${PN}.desktop
}