# Contributor: Rudolf Polzer # Maintainer: Rudolf Polzer pkgname=aaaaxy pkgver=1.4.42 pkgrel=0 pkgdesc="A nonlinear puzzle platformer taking place in impossible spaces" url="https://divVerent.github.io/aaaaxy/" arch="all !s390x !armhf !armv7 !riscv64" 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=" 98a2249d56257d148cb7dcae0e42a327bb946541746b02d592effec1b5dd86d43b620c2e2b2187c6982c3a6b376a8ec96b922679df3e2c7bc436cccea9df9128 aaaaxy-1.4.42.tar.gz c4594f2715ef13640c1ee30bb42d6471407fe5ee32b1456134183384731dedc5ac376baa5800ffae6f7935b8a507cf6b05dd1366950a7d9ee4071113aa91d456 sdl-gamecontrollerdb-for-aaaaxy-v1.4.42.zip "