user/papermc-plugin-worldguard: move from unmaintained, upgrade to 7.0.13_beta1, add build function

This commit is contained in:
Antoine Martin 2024-12-24 14:39:28 -05:00 committed by Antoine Martin
parent 382b03e3f2
commit d31452f43a
2 changed files with 29 additions and 22 deletions

View file

@ -1,22 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=craftbukkit-plugin-worldedit
pkgver=7.0.6
_pkgver=$pkgver
pkgrel=3
pkgdesc="WorldGuard lets you and players guard areas of land against griefers and undesirables"
options=!check
arch='noarch'
url="https://dev.bukkit.org/projects/worldguard"
license="GPL-3.0"
depends="craftbukkit>=1.17.0 craftbukkit<=1.18.1"
source="https://media.forgecdn.net/files/3461/546/worldguard-bukkit-7.0.6-dist.jar"
package() {
install -Dm644 "$srcdir"/worldguard-bukkit-$_pkgver-dist.jar "$pkgdir/var/lib/craftbukkit/plugins/WorldGuard.jar"
chown craftbukkit:craftbukkit $pkgdir/var/lib/craftbukkit/plugins/WorldGuard.jar
}
sha512sums="
f2f857ffbbe7896b8986d5944564d7ab01e51d86476e05c66067a57d83dcb2ee60019ab9d75b16d551e9cfe102d29a602de41f316da57d7743d2595d6a11d839 worldguard-bukkit-7.0.6-dist.jar
"

View file

@ -0,0 +1,29 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=papermc-plugin-worldguard
pkgver=7.0.13_beta1
_gittag=2f13ae0444409376feb6c7674591142fe854e12e
pkgrel=0
pkgdesc="WorldGuard lets you and players guard areas of land against griefers and undesirables"
arch='noarch'
url="https://github.com/EngineHub/WorldGuard"
license="GPL-3.0"
depends="papermc>=1.17.0"
makedepends="openjdk21-jdk"
source="$pkgname-$_gittag.tar.gz::https://github.com/EngineHub/WorldGuard/archive/$_gittag.tar.gz"
builddir="$srcdir"/WorldGuard-$_gittag
build() {
./gradlew build
}
check() {
./gradlew test
}
package() {
install -Dm644 "$builddir"/worldguard-bukkit/build/libs/worldguard-bukkit-*dist.jar "$pkgdir/var/lib/papermc/plugins/WorldGuard.jar"
}
sha512sums="
755646330c17df22b1d4eb6f38fc8ea712eff86a0165f2dba6dc1bcd420d2d112547adf60a35f268f45730b8444e540d7d08a02a50df0238bf16c9ff7dc799ff papermc-plugin-worldguard-2f13ae0444409376feb6c7674591142fe854e12e.tar.gz
"