# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=love
pkgver=11.5
pkgrel=0
pkgdesc="A Lua 2D Graphics Library"
url="https://love2d.org"
# s390x: build failures on big endian
# ppc64le, riscv64, loongarch64 missing luajit
arch="all !ppc64le !s390x !riscv64 !loongarch64"
license="Zlib"
makedepends="
	freetype-dev
	libmodplug-dev
	libtheora-dev
	libvorbis-dev
	libx11-dev
	luajit-dev
	mpg123-dev
	openal-soft-dev
	sdl2-dev
	zlib-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/love2d/love/releases/download/$pkgver/love-$pkgver-linux-src.tar.gz"
options="!check" #No checks

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
86fe29939e0d48317e742c99c80b1805821f91539c37d1701207585593b10e3a12f335dac9c25069e0de61a7c6af7c6d5e30bc36826c29f963df8f64084a9a5b  love-11.5-linux-src.tar.gz
"
