# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>

pkgname=craftbukkit-plugin-dynmap
pkgver=3.5
_pkgver=$pkgver-beta-1
pkgrel=1
pkgdesc="A Google Maps-like map for your Minecraft server that can be viewed in a browser"
options=!check
arch='noarch'
url="https://github.com/webbukkit/dynmap"
license="AGPL-2.0"
depends="craftbukkit>=1.16.1 craftbukkit<=1.18.1"
source="$pkgname-$_pkgver.jar::https://dynmap.us/releases/Dynmap-$_pkgver-spigot.jar"

package() {
	install -Dm644 "$srcdir"/$pkgname-$_pkgver.jar "$pkgdir/var/lib/craftbukkit/plugins/dynmap.jar"
	chown craftbukkit:craftbukkit "$pkgdir"/var/lib/craftbukkit/plugins/dynmap.jar
}
sha512sums="
15b4d5cdfdd9b4f96d269c49cc63c2ff7a43977258f1280eb94c5de568a9e62ef6fe112a4c23d5abb0616623d9e10f363c3d94ea25740f4990f2959fb448ea60  craftbukkit-plugin-dynmap-3.5-beta-1.jar
"
