aboutsummaryrefslogtreecommitdiffstats
path: root/testing/powder-toy/APKBUILD
blob: 9e61d7080428412b0c6d737f8c7cbc2ca5e74235 (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
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=powder-toy
pkgver=96.2.350
pkgrel=1
pkgdesc="Desktop version of the classic falling sand physics sandbox, simulates air pressure, velocity & heat!"
url="http://powdertoy.co.uk/"
arch="all !riscv64" # textrels
license="GPL-3.0-only"
_feature_http="true"
makedepends="
	meson
	cmake
	sdl2-dev
	fftw-dev
	bzip2-dev
	zlib-dev
"
[ "$_feature_http" = "true" ] && makedepends="$makedepends curl-dev"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/The-Powder-Toy/The-Powder-Toy/archive/refs/tags/v$pkgver.tar.gz
"
options="!check" # no test suite
builddir="$srcdir/The-Powder-Toy-$pkgver"

build() {
	abuild-meson \
		-Dstatic=system \
		-Dhttp="$_feature_http" \
		-Dlua=none \
		build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

package() {
	cd "$builddir/build"
	install -Dm755 "powder" "$pkgdir/usr/bin/powder"
}

sha512sums="
566def511fc77531ddf202c7660a9f78bd1371f5d361aadbc68c664b2d6425865a30ef611785db22472378905acf47c168a2692f3d79f864534d17a2667ec425  powder-toy-96.2.350.tar.gz
"