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

pkgname=craftbukkit-plugin-customtime
pkgver=2.1.1
pkgrel=2
pkgdesc="CustomTime is a simple plugin used to control the day/night cycle. You can speed up or slow down time any way you like."
options=!check
arch='noarch'
url="https://dev.bukkit.org/projects/customtime"
license="CC-BY-NC-4.0"
depends="craftbukkit>=1.16.1 craftbukkit<=1.18.1"
source="$pkgname-$pkgver.jar::https://media.forgecdn.net/files/3414/509/CustomTime-$pkgver.jar"

package() {
	install -Dm644 "$srcdir"/$pkgname-$pkgver.jar "$pkgdir/var/lib/craftbukkit/plugins/CustomTime.jar"
	chown craftbukkit:craftbukkit "$pkgdir"/var/lib/craftbukkit/plugins/CustomTime.jar
}
sha512sums="
fd3eb316dbdc16b1b1fe6a676e989507e09ad5fa3f1de3016db4bccdf11536f7a459cf5a134db87165edf6cf0229d7d656bcf0d81250cad20120bdaaa2fbc553  craftbukkit-plugin-customtime-2.1.1.jar
"
