34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# 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
|
|
"
|