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

pkgname=craftbukkit-plugin-luckperms
_pkgver=5.3.89
_buildver=1389
pkgver=$_pkgver.$_buildver
pkgrel=1
pkgdesc="An advanced permissions plugin for Bukkit/Spigot, BungeeCord and Sponge."
options=!check
arch='noarch'
url="https://github.com/lucko/LuckPerms"
license="MIT"
depends="craftbukkit>=1.8.8 craftbukkit<=1.18.1"
source="https://ci.lucko.me/job/LuckPerms/$_buildver/artifact/bukkit/loader/build/libs/LuckPerms-Bukkit-$_pkgver.jar"

package() {
	install -Dm644 "$srcdir"/LuckPerms-Bukkit-$_pkgver.jar "$pkgdir/var/lib/craftbukkit/plugins/LuckPerms.jar"
	chown craftbukkit:craftbukkit "$pkgdir"/var/lib/craftbukkit/plugins/LuckPerms.jar
}
sha512sums="
7e146616cdf7f667c483bbe2112439c85f32427e9aa3714f0b0e869abf0cde6aacc7341d8d9e6a72ddcf8f35af840f4ba678c4690222912113f497cafce11154  LuckPerms-Bukkit-5.3.89.jar
"
