minecraft-server-fabric/PKGBUILD
Gordian Edenhofer afadb6b5cf Secure and clean up PKGBUILDs (https, sha512sums)
* Switch to https wherever possible
* Use unique source names where applicable (e.g. not *-git packages)
* Switch to sha512sums everywhere
* Update URL if necessary

upgpkg: certbot-git 0.8.1.r25.gaa4a263-1
upgpkg: certbot-plugins-git 0.8.1.r25.gaa4a263-1
upgpkg: cuberite 1.9.4-6
upgpkg: electricfence 2.2.4-1
upgpkg: fakepkg 1.40.2-1
upgpkg: gnome-shell-theme-copernico-git 15.73fa7ca-1
upgpkg: gnome-shell-theme-elegance-colors-git 238.ca44e2f-4
upgpkg: grive 0.5.0-5
upgpkg: grive-git 434.7bbb01c-2
upgpkg: gtk-theme-iris-dark-git 107.3468e91-1
upgpkg: gtk-theme-iris-light-git 105.aca7c34-1
upgpkg: letshelp-certbot-git 0.8.1.r25.gaa4a263-1
upgpkg: libinput-gestures-git r21.db6b688-1
upgpkg: luv-icon-theme-git 0.4.r82.g961ba1f-1
upgpkg: minecraft-server 1.11.2-2
upgpkg: mt7610u_sta-dkms-git r25.5f01636-1
upgpkg: munge 0.5.12-1
upgpkg: munge-git 1040.1d12405-1
upgpkg: paper-gtk-theme-git 299.cecb923-1
upgpkg: pcc 1.1.0-1
upgpkg: pcc-libs 1.1.0-1
upgpkg: python-acme-git 0.8.1.r25.gaa4a263-1
upgpkg: routersploit 2.2.1-1
upgpkg: routersploit-git 2.2.1.r0.gf5b7619-1
upgpkg: semt 1.1.1-1
upgpkg: unity-editor-bin 5.5.0p1+20161220-1
upgpkg: zoom 2.0.75971.1216-1
2017-01-07 15:01:06 +01:00

52 lines
2.7 KiB
Bash

# Maintainer: Gordian Edenhofer <gordian.edenhofer@gmail.com>
# Contributer: Philip Abernethy <chais.z3r0@gmail.com>
# Contributer: sowieso <sowieso@dukun.de>
pkgname=minecraft-server
pkgver=1.11.2
pkgrel=2
pkgdesc="Minecraft server unit files, script, and jar"
arch=('any')
url="https://minecraft.net/"
license=('custom')
depends=('java-runtime-headless' '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')
backup=('etc/conf.d/minecraft')
install="${pkgname}.install"
source=("https://s3.amazonaws.com/Minecraft.Download/versions/${pkgver}/minecraft_server.${pkgver}.jar"
"minecraftd-backup.service"
"minecraftd-backup.timer"
"minecraftd.service"
"minecraftd.conf"
"minecraftd.sh")
noextract=("minecraft_server.${pkgver}.jar")
sha512sums=('f147d99832e2e12f04cc56e28abe33c5acf7d3269631eb3d75aa18108425994d0191243610d8b63959461a53b5c5bf0f5c2cf757e212e71301f6af0979aa27a9'
'c8f96bafb0ba3fd8946ac791b09e75cae54dc1a8e02822f91ca70a77a8ba45b253a83c4db30f9cfbf0658a2608b38e6de3d00f1d832ef676f329a78e69eab3e7'
'19ee3646bfbace353b65c0373594edb654de11c9671f29cebad3b31109f29f94ade1d529d9f409b0989c376bef9b451585b22a1e0ac4295fcc92d9565f808418'
'b0124c8cd90a4f9901a9105c0ee51eb3e7db944d106cf30fd91b29794178e650d3a21c3be3c8e0cb454b2cef6f27541c44e7a5e77a1d50f89b9152363de51d28'
'73132ec613e05c8ed7ebe4eda2395f1ea0733ffe94ba7e203e06246d5852139bbfb7a9073b2b01891282339a2f85676699cd889cde79d6317066e27fd65b1d67'
'09f03cff6cc8f5ca76d564baf28b1998f6b3c010b9f871c238307eb9a61efa895e823d565f6424da38409500dcfe15be3ad4018caa81bea40ad2c9002b326340')
_game="minecraft"
_server_root="/srv/minecraft"
package() {
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"
# Link the log files
mkdir -p "${pkgdir}/var/log/"
install -dm2755 "${pkgdir}/${_server_root}/logs"
ln -s "${_server_root}/logs" "${pkgdir}/var/log/${_game}"
# Give the group write permissions and set user or group ID on execution
chmod g+ws "${pkgdir}${_server_root}"
}