# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-3dengine
pkgver=0_git20220405
pkgrel=1
_commit="b8807815ca5313933883a4c6c9a8a047883e757d"
pkgdesc="3D engine for libretro GL with additional features"
url="https://github.com/libretro/libretro-3dengine"
arch="all"
license="GPL-3.0-only"
makedepends="mesa-dev zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/libretro-3dengine/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/libretro-3dengine-$_commit"
options="!check" # No tests

build() {
	rm -rf deps
	make
}

package() {
	install -Dm644 3dengine_libretro.so "$pkgdir"/usr/lib/libretro/3dengine_libretro.so
}

sha512sums="
a50ec29057ce63545ecb39520bca7387ee75ccb8152f4b76263d9717cb63e26ce12f4ad9453fd9a83aa34ea279da2c0523fc68d090e4dad5f24f11b95d8b2b9a  libretro-3dengine-b8807815ca5313933883a4c6c9a8a047883e757d.tar.gz
b2d5693dae7bd88081f8a053a47f9790013d47528384bba201d28343a06acae557a3cf6e952397aacef8b0e7e7662655b1d5affd350ddcb09b7f4bf1d2d825c6  patch-unbundle.patch
"
