user/papermc-plugin-luckperms: move from unmaintained, upgrade to 5.4.151, add build function
All checks were successful
/ lint (pull_request) Successful in 33s
/ deploy-x86_64 (pull_request) Successful in 1m38s
/ build-x86_64 (pull_request) Successful in 13m24s
/ deploy-aarch64 (pull_request) Successful in 58s
/ build-aarch64 (pull_request) Successful in 43m11s

This commit is contained in:
Antoine Martin 2024-12-24 14:24:37 -05:00
parent 233a098355
commit 71fceafbfa
Signed by: forge
GPG key ID: D62A472A4AA7D541
2 changed files with 34 additions and 23 deletions

View file

@ -1,23 +0,0 @@
# 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
"

View file

@ -0,0 +1,34 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
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
"