user/papermc-plugin-worldedit: move from unmaintained, upgrade to 7.3.9, add build function

This commit is contained in:
Antoine Martin 2024-12-24 14:32:59 -05:00 committed by Antoine Martin
parent d31452f43a
commit 5d3ff7043c
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.2.8
_pkgver=$pkgver
pkgrel=1
pkgdesc="WorldEdit is an easy-to-use in-game Minecraft map editor"
options=!check
arch='noarch'
url="https://dev.bukkit.org/projects/worldedit"
license="GPL-3.0"
depends="craftbukkit>=1.13.2 craftbukkit<=1.18.1"
source="https://media.forgecdn.net/files/3559/523/worldedit-bukkit-7.2.8.jar"
package() {
install -Dm644 "$srcdir"/worldedit-bukkit-$_pkgver.jar "$pkgdir/var/lib/craftbukkit/plugins/WorldEdit.jar"
chown craftbukkit:craftbukkit $pkgdir/var/lib/craftbukkit/plugins/WorldEdit.jar
}
sha512sums="
b57eacf7a2d90461f996f71cf55aa2e328d7b75c724291f11bcd1ab0f7e64e980db7ae3a2a56fffdf2bc31bfbcf68dda89b7c6f2ffa32ee430b8016020d796e3 worldedit-bukkit-7.2.8.jar
"

View file

@ -0,0 +1,29 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=papermc-plugin-worldedit
pkgver=7.3.9
_pkgver=$pkgver
pkgrel=0
pkgdesc="WorldEdit is an easy-to-use in-game Minecraft map editor"
arch='noarch !aarch64'
url="https://github.com/EngineHub/WorldEdit"
license="GPL-3.0"
depends="papermc>=1.13.2"
makedepends="openjdk21-jdk"
source="$pkgname-$pkgver.tar.gz::https://github.com/EngineHub/WorldEdit/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/WorldEdit-$pkgver
build() {
./gradlew build --parallel
}
check() {
./gradlew test
}
package() {
install -Dm644 "$builddir"/worldedit-bukkit/build/libs/worldedit-bukkit-$pkgver.jar "$pkgdir/var/lib/papermc/plugins/WorldEdit.jar"
}
sha512sums="
35eb83dfcd192884a86f9bec3cbe586af6141b8c10461937b2ef112bfb4d64f5f7c6e950108a7893dc5b1054f1d0206f74ec6b4702481c0da69bf89627dbfb06 papermc-plugin-worldedit-7.3.9.tar.gz
"