fabric server
This commit is contained in:
parent
f000b7a914
commit
10df2c8b02
34
.SRCINFO
34
.SRCINFO
|
@ -1,34 +0,0 @@
|
|||
pkgbase = minecraft-server
|
||||
pkgdesc = Minecraft server unit files, script, and jar
|
||||
pkgver = 1.14.2
|
||||
pkgrel = 3
|
||||
url = https://minecraft.net/
|
||||
install = minecraft-server.install
|
||||
arch = any
|
||||
license = custom
|
||||
depends = java-runtime-headless>=8
|
||||
depends = screen
|
||||
depends = sudo
|
||||
depends = bash
|
||||
depends = awk
|
||||
depends = sed
|
||||
optdepends = tar: needed in order to create world backups
|
||||
optdepends = netcat: required in order to suspend an idle server
|
||||
conflicts = minecraft-server-systemd
|
||||
conflicts = minecraft-canary
|
||||
noextract = minecraft_server.1.14.2.jar
|
||||
backup = etc/conf.d/minecraft
|
||||
source = minecraft_server.1.14.2.jar::https://launcher.mojang.com/v1/objects/808be3869e2ca6b62378f9f4b33c946621620019/server.jar
|
||||
source = minecraftd-backup.service
|
||||
source = minecraftd-backup.timer
|
||||
source = minecraftd.service
|
||||
source = minecraftd.conf
|
||||
source = minecraftd.sh
|
||||
sha512sums = 9670c1038aa23c3012241a5a103ab5a3e989efcb13edd45f318f92e9968f5f2e99314d3edd0c6851238772e2e1cc5b4bdaeac686a7622e321ac81bf40e2a3cf7
|
||||
sha512sums = c8f96bafb0ba3fd8946ac791b09e75cae54dc1a8e02822f91ca70a77a8ba45b253a83c4db30f9cfbf0658a2608b38e6de3d00f1d832ef676f329a78e69eab3e7
|
||||
sha512sums = 19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418
|
||||
sha512sums = 5203f6331f740ecfcea2a2cc653603ae97419baa89e08512f9d8feb63e4a52978442a69b313eccd9037b676a62ab528e2b533c0fb95a9c7177318279fe0cde79
|
||||
sha512sums = 73132ec613e05c8ed7ebe4eda2395f1ea0733ffe94ba7e203e06246d5852139bbfb7a9073b2b01891282339a2f85676699cd889cde79d6317066e27fd65b1d67
|
||||
sha512sums = 9e806e35c207c96714f53a360e2d493f665867126398c2f12486b6f9d2b2db98c883e19aade703e18c31696e05808847762e494f743db7802127f415a00ba3bc
|
||||
|
||||
pkgname = minecraft-server
|
18
PKGBUILD
18
PKGBUILD
|
@ -2,8 +2,9 @@
|
|||
# Contributer: Philip Abernethy <chais.z3r0@gmail.com>
|
||||
# Contributer: sowieso <sowieso@dukun.de>
|
||||
|
||||
pkgname=minecraft-server
|
||||
pkgname=minecraft-server-fabric
|
||||
pkgver=1.14.2
|
||||
_fabric_ver=0.4.2.28
|
||||
_nonce=808be3869e2ca6b62378f9f4b33c946621620019
|
||||
pkgrel=3
|
||||
pkgdesc="Minecraft server unit files, script, and jar"
|
||||
|
@ -13,7 +14,7 @@ license=('custom')
|
|||
depends=('java-runtime-headless>=8' 'screen' 'sudo' 'bash' 'awk' 'sed')
|
||||
optdepends=("tar: needed in order to create world backups"
|
||||
"netcat: required in order to suspend an idle server")
|
||||
conflicts=('minecraft-server-systemd' 'minecraft-canary')
|
||||
conflicts=('minecraft-server' 'minecraft-server-systemd' 'minecraft-canary')
|
||||
backup=('etc/conf.d/minecraft')
|
||||
install="${pkgname}.install"
|
||||
source=("minecraft_server.${pkgver}.jar"::"https://launcher.mojang.com/v1/objects/${_nonce}/server.jar"
|
||||
|
@ -21,26 +22,33 @@ source=("minecraft_server.${pkgver}.jar"::"https://launcher.mojang.com/v1/object
|
|||
"minecraftd-backup.timer"
|
||||
"minecraftd.service"
|
||||
"minecraftd.conf"
|
||||
"minecraftd.sh")
|
||||
"minecraftd.sh"
|
||||
"fabric-installer.${pkgver}.jar"::"https://maven.modmuss50.me/net/fabricmc/fabric-installer/${_fabric_ver}/fabric-installer-${_fabric_ver}.jar")
|
||||
noextract=("minecraft_server.${pkgver}.jar")
|
||||
sha512sums=('9670c1038aa23c3012241a5a103ab5a3e989efcb13edd45f318f92e9968f5f2e99314d3edd0c6851238772e2e1cc5b4bdaeac686a7622e321ac81bf40e2a3cf7'
|
||||
'c8f96bafb0ba3fd8946ac791b09e75cae54dc1a8e02822f91ca70a77a8ba45b253a83c4db30f9cfbf0658a2608b38e6de3d00f1d832ef676f329a78e69eab3e7'
|
||||
'19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418'
|
||||
'5203f6331f740ecfcea2a2cc653603ae97419baa89e08512f9d8feb63e4a52978442a69b313eccd9037b676a62ab528e2b533c0fb95a9c7177318279fe0cde79'
|
||||
'73132ec613e05c8ed7ebe4eda2395f1ea0733ffe94ba7e203e06246d5852139bbfb7a9073b2b01891282339a2f85676699cd889cde79d6317066e27fd65b1d67'
|
||||
'9e806e35c207c96714f53a360e2d493f665867126398c2f12486b6f9d2b2db98c883e19aade703e18c31696e05808847762e494f743db7802127f415a00ba3bc')
|
||||
'9e806e35c207c96714f53a360e2d493f665867126398c2f12486b6f9d2b2db98c883e19aade703e18c31696e05808847762e494f743db7802127f415a00ba3bc'
|
||||
'SKIP')
|
||||
|
||||
_game="minecraft"
|
||||
_server_root="/srv/minecraft"
|
||||
|
||||
prepare() {
|
||||
java -jar "fabric-installer.${pkgver}.jar" server
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 fabric-server-launch.jar "${pkgdir}${_server_root}/${_game}_server.jar"
|
||||
install -Dm644 ${_game}d.conf "${pkgdir}/etc/conf.d/${_game}"
|
||||
install -Dm755 ${_game}d.sh "${pkgdir}/usr/bin/${_game}d"
|
||||
install -Dm644 ${_game}d.service "${pkgdir}/usr/lib/systemd/system/${_game}d.service"
|
||||
install -Dm644 ${_game}d-backup.service "${pkgdir}/usr/lib/systemd/system/${_game}d-backup.service"
|
||||
install -Dm644 ${_game}d-backup.timer "${pkgdir}/usr/lib/systemd/system/${_game}d-backup.timer"
|
||||
install -Dm644 ${_game}_server.${pkgver}.jar "${pkgdir}${_server_root}/${_game}_server.${pkgver}.jar"
|
||||
ln -s "${_game}_server.${pkgver}.jar" "${pkgdir}${_server_root}/${_game}_server.jar"
|
||||
ln -s "${_game}_server.${pkgver}.jar" "${pkgdir}${_server_root}/server.jar"
|
||||
|
||||
# Link the log files
|
||||
mkdir -p "${pkgdir}/var/log/"
|
||||
|
|
Loading…
Reference in New Issue
Block a user