From 71fceafbfac5dd6abb828172e57a20b014b3bf7e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 24 Dec 2024 14:24:37 -0500 Subject: [PATCH] user/papermc-plugin-luckperms: move from unmaintained, upgrade to 5.4.151, add build function --- .../craftbukkit-plugin-luckperms/APKBUILD | 23 ------------- user/papermc-plugin-luckperms/APKBUILD | 34 +++++++++++++++++++ 2 files changed, 34 insertions(+), 23 deletions(-) delete mode 100644 unmaintained/craftbukkit-plugin-luckperms/APKBUILD create mode 100644 user/papermc-plugin-luckperms/APKBUILD diff --git a/unmaintained/craftbukkit-plugin-luckperms/APKBUILD b/unmaintained/craftbukkit-plugin-luckperms/APKBUILD deleted file mode 100644 index 1ef75e9..0000000 --- a/unmaintained/craftbukkit-plugin-luckperms/APKBUILD +++ /dev/null @@ -1,23 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -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 -" diff --git a/user/papermc-plugin-luckperms/APKBUILD b/user/papermc-plugin-luckperms/APKBUILD new file mode 100644 index 0000000..4de9ddb --- /dev/null +++ b/user/papermc-plugin-luckperms/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=papermc-plugin-luckperms +pkgver=5.4.151 +_gittag=0fef481d480737528491fc0b3b8487eb1612f955 +pkgrel=0 +pkgdesc="An advanced permissions plugin for Bukkit/Spigot, BungeeCord and Sponge." +arch='noarch' +url="https://github.com/lucko/LuckPerms" +license="MIT" +depends="papermc>=1.8.8" +makedepends="openjdk21-jdk" +source="$pkgname-$_gittag.tar.gz::https://github.com/LuckPerms/LuckPerms/archive/$_gittag.tar.gz" +builddir="$srcdir"/LuckPerms-$_gittag + +prepare() { + default_prepare + sed -i "s|project.ext.patchVersion = determinePatchVersion()|project.ext.patchVersion = '${pkgver##*.}'|" build.gradle +} + +build() { + ./gradlew build +} + +check() { + ./gradlew test +} + +package() { + install -Dm644 "$builddir"/bukkit/loader/build/libs/LuckPerms-Bukkit-*.jar "$pkgdir/var/lib/papermc/plugins/LuckPerms.jar" +} +sha512sums=" +e016d2a161472974cc75151e1a6cb3495881d4db7e0aa75d81a1c54fd16d191fe721b1f9fadeaac0bef7ec4a7c47329a2cf367cf3a7577b284077ec173db0579 papermc-plugin-luckperms-0fef481d480737528491fc0b3b8487eb1612f955.tar.gz +"