50 lines
2 KiB
Text
50 lines
2 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=papermc
|
|
pkgver=1.21.3
|
|
_gittag=${pkgver/.0}
|
|
pkgrel=0
|
|
pkgdesc="Next generation of Minecraft server, compatible with Spigot plugins and offering uncompromising performance"
|
|
arch='noarch'
|
|
url="https://papermc.io/"
|
|
license='custom'
|
|
depends='openjdk21-jdk screen sudo bash gawk sed netcat-openbsd'
|
|
makedepends="gradle zstd"
|
|
options="!check"
|
|
subpackages="$pkgname-openrc"
|
|
source="
|
|
https://ayakael.net/api/packages/mirrors/generic/papermc/$_gittag/papermc-$_gittag.tar.zst
|
|
papermc.initd
|
|
papermc.conf
|
|
papermc.sh
|
|
"
|
|
|
|
build() {
|
|
./gradlew --parallel createMojmapBundlerJar
|
|
}
|
|
|
|
check() {
|
|
./gradlew --parallel check
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/conf.d/$pkgname
|
|
install -Dm755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
|
|
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
install -Dm644 "$builddir"/build/libs/paper*.jar "$pkgdir"/var/lib/$pkgname/$pkgver.jar
|
|
ln -s $pkgver.jar "$pkgdir"/var/lib/$pkgname/server.jar
|
|
|
|
# Link the log files
|
|
mkdir -p "$pkgdir"/var/log/
|
|
install -dm2755 "$pkgdir"/var/lib/$pkgname/logs
|
|
ln -s "/var/lib/$pkgname"/logs "$pkgdir"/var/log/$pkgname
|
|
|
|
# Give the group write permissions and set user or group ID on execution
|
|
chmod g+ws "$pkgdir"/var/lib/$pkgname
|
|
}
|
|
sha512sums="
|
|
630c0fafd53082bec3992234f7422c4714c30ad0fac240c6dc80091fc7d49b57bc2cb7365366ac015d2a9217c4fd561f0649f738cb0d90ea7a7b6355f9839ff6 papermc-1.21.3.tar.zst
|
|
c5d1bf85ceb74162aaaf2bcd2d06dc2e3dd2e37c39f0cee2be7c8dbff9970a6aff1e48a43e6d1e83e6a0ac610bd89f62b1279bf27b64afa88d9831a36aebbd3e papermc.initd
|
|
9b8e267428731ee9255f82a93f1e8674d7e917a0f154bd395cd2280a49aa248a4b8427520b08dbb4b3a74a5471dac0e439eedc8ab94bf2e53bb8d411d2d8a789 papermc.conf
|
|
943ba0d4c10173246bdc6497dcedd54da0788f966841c8d3381398711d79f8d5eb07a24ce28f519b6f24f59d99fa9e74bc6bb882059f343df4eeda5de3660ac7 papermc.sh
|
|
"
|