mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-12 09:12:36 +02:00
67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
# Contributor: Rudolf Polzer <divVerent@gmail.com>
|
|
# Maintainer: Rudolf Polzer <divVerent@gmail.com>
|
|
pkgname=aaaaxy
|
|
pkgver=1.5.173
|
|
pkgrel=0
|
|
pkgdesc="A nonlinear puzzle platformer taking place in impossible spaces"
|
|
url="https://divVerent.github.io/aaaaxy/"
|
|
arch="all !s390x !armhf !armv7 !riscv64 !loongarch64"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
advancecomp
|
|
alsa-lib-dev
|
|
go
|
|
libx11-dev
|
|
libxcursor-dev
|
|
libxinerama-dev
|
|
libxi-dev
|
|
libxrandr-dev
|
|
mesa-dev
|
|
zip
|
|
"
|
|
checkdepends="xvfb-run mesa-dri-gallium"
|
|
source="
|
|
https://github.com/divVerent/aaaaxy/archive/v$pkgver/aaaaxy-$pkgver.tar.gz
|
|
https://github.com/divVerent/aaaaxy/releases/download/v$pkgver/sdl-gamecontrollerdb-for-aaaaxy-v$pkgver.zip
|
|
"
|
|
options="net" # Needed for go mod download.
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
mv "$srcdir"/third_party/SDL_GameControllerDB/assets/input/* \
|
|
third_party/SDL_GameControllerDB/assets/input/
|
|
go mod download
|
|
}
|
|
|
|
build() {
|
|
export AAAAXY_BUILD_USE_VERSION_FILE=true
|
|
make BUILDTYPE=release
|
|
}
|
|
|
|
check() {
|
|
xvfb-run sh scripts/regression-test-demo.sh aaaaxy \
|
|
"on track for Any%, All Paths, No Teleports and No Coil" \
|
|
./aaaaxy assets/demos/benchmark.dem
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 io.github.divverent.aaaaxy.metainfo.xml \
|
|
"$pkgdir"/usr/share/metainfo/io.github.divverent.aaaaxy.metainfo.xml
|
|
install -Dm644 aaaaxy.png \
|
|
"$pkgdir"/usr/share/icons/hicolor/128x128/apps/aaaaxy.png
|
|
install -Dm644 aaaaxy.desktop \
|
|
"$pkgdir"/usr/share/applications/aaaaxy.desktop
|
|
install -Dm755 aaaaxy \
|
|
"$pkgdir"/usr/bin/aaaaxy
|
|
}
|
|
|
|
sha512sums="
|
|
8ef3d48dd0bcc1c25a9b16fc49d3a8f13026a6eea169ec2328024727aefab23781337789beb5e44adc0c02f08b1fea7b036bff834367da74fdb6a1502e4e6852 aaaaxy-1.5.173.tar.gz
|
|
dba0a73fab85c9d86ed07a6a9c601982e3f140f7549b49413b0638d9f605128878302b68799e190c4a33f0a4465f4c3343f316cebbe42a6aa4fea0a38fdda6ff sdl-gamecontrollerdb-for-aaaaxy-v1.5.173.zip
|
|
"
|