79 lines
2.7 KiB
Text
79 lines
2.7 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=papermc-plugin-essentialsx
|
|
pkgver=2.21.0_pre151
|
|
_gittag=f2af9528b0f99f2ff121dda2607e51d391a2a8bf
|
|
pkgrel=0
|
|
pkgdesc="EssentialsX is the essential plugin suite for Minecraft servers, with over 130 commands for servers of all size and scale."
|
|
arch='noarch'
|
|
url="https://essentialsx.net/"
|
|
license="GPL-3.0"
|
|
depends="
|
|
papermc>=1.8.8
|
|
papermc-plugin-luckperms
|
|
papermc-plugin-vault
|
|
"
|
|
makedepends="openjdk21-jdk"
|
|
source="$pkgname-$_gittag.tar.gz::https://github.com/EssentialsX/Essentials/archive/$_gittag.tar.gz"
|
|
builddir="$srcdir"/Essentials-$_gittag
|
|
|
|
subpackages="$pkgname-chat $pkgname-spawn $pkgname-antibuild $pkgname-discord $pkgname-geo $pkgname-protect $pkgname-xmpp"
|
|
|
|
build() {
|
|
./gradlew build
|
|
}
|
|
|
|
check() {
|
|
./gradlew test
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$builddir"/jars/EssentialsX-*.jar "$pkgdir/var/lib/papermc/plugins/Essentials.jar"
|
|
}
|
|
|
|
chat() {
|
|
pkgdesc="Chat formatting, local chat"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXChat-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsChat.jar"
|
|
}
|
|
|
|
spawn() {
|
|
pkgdesc="Spawnpoint control, per-player spawns"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXSpawn-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsSpawn.jar"
|
|
}
|
|
|
|
antibuild() {
|
|
pkgdesc="Simple permissions-based building control"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXAntiBuild-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsAntiBuild.jar"
|
|
}
|
|
|
|
discord() {
|
|
pkgdesc="Lightweight chat, messaging and command integration with Discord"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXDiscord-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsDiscord.jar"
|
|
install -Dm644 "$builddir"/jars/EssentialsXDiscordLink-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsDiscordLink.jar"
|
|
}
|
|
|
|
geo() {
|
|
pkgdesc="Geographical player lookup (formerly EssentialsX GeoIP)"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXGeoIP-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsGeo.jar"
|
|
}
|
|
|
|
protect() {
|
|
pkgdesc="Configurable world protection and control"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXProtect-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsProtect.jar"
|
|
}
|
|
|
|
xmpp() {
|
|
pkgdesc="Lightweight chat, messaging and server log integration with Jabber/XMPP services"
|
|
depends="$pkgname"
|
|
install -Dm644 "$builddir"/jars/EssentialsXXMPP-*.jar "$subpkgdir/var/lib/papermc/plugins/EssentialsXMPP.jar"
|
|
}
|
|
|
|
sha512sums="
|
|
5fabf6b2091f7182ff23ca02e2f93ff22527668d55bbf60977ad414881c201bdc4608fe3618ca0d1312beb8fe8768f36cd792099817a0205f791ab2f9b212e04 papermc-plugin-essentialsx-f2af9528b0f99f2ff121dda2607e51d391a2a8bf.tar.gz
|
|
"
|