minecraft-server-fabric/PKGBUILD

43 lines
1.9 KiB
Bash
Raw Normal View History

2015-09-20 14:23:34 -07:00
# Maintainer: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
# Contributer: Philip Abernethy <chais.z3r0@gmail.com>
2015-07-03 10:16:00 -07:00
pkgname=minecraft-server
2015-07-31 09:33:43 -07:00
pkgver=1.8.8
2015-09-20 14:23:34 -07:00
pkgrel=2
2015-07-03 10:16:00 -07:00
pkgdesc="Minecraft server unit files, script, and jar"
2015-09-20 14:23:34 -07:00
arch=('any')
2015-07-03 10:16:00 -07:00
url="http://minecraft.net/"
license=('custom')
2015-09-20 14:23:34 -07:00
depends=('java-runtime-headless' 'screen' 'sudo' 'bash')
optdepends=('tar: needed in order to create world backups')
2015-07-03 10:16:00 -07:00
conflicts=('minecraft-server-systemd' 'minecraft-canary')
2015-09-20 14:23:34 -07:00
options=(!strip)
install=${pkgname}.install
2015-07-03 10:16:00 -07:00
backup=('etc/conf.d/minecraft')
2015-09-20 14:23:34 -07:00
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")
md5sums=('a0671390aa0691e70a950155aab06ffb'
'2cf6cdf65e0ed6aa6d452943b1e84357'
'c644abdf293c2f98033a64d732a4945c'
'5ed78e366146e47f8498347e93ad5423'
'd4656f27716fd78ab64344a517b07443'
'1991eb0aedeba1dab2371f22a6736b47')
2015-07-03 10:16:00 -07:00
package() {
2015-09-20 14:23:34 -07:00
install -Dm644 minecraftd.conf "${pkgdir}/etc/conf.d/minecraft"
install -Dm755 minecraftd.sh "${pkgdir}/usr/bin/minecraftd"
install -Dm644 minecraftd.service "${pkgdir}/usr/lib/systemd/system/minecraftd.service"
install -Dm644 minecraftd-backup.service "${pkgdir}/usr/lib/systemd/system/minecraftd-backup.service"
install -Dm644 minecraftd-backup.timer "${pkgdir}/usr/lib/systemd/system/minecraftd-backup.timer"
install -Dm644 minecraft_server.${pkgver}.jar "${pkgdir}/srv/minecraft/minecraft_server.${pkgver}.jar"
ln -s "minecraft_server.${pkgver}.jar" "${pkgdir}/srv/minecraft/minecraft_server.jar"
2015-07-03 10:16:00 -07:00
2015-09-20 14:23:34 -07:00
mkdir -p "${pkgdir}/var/log/"
ln -s "/srv/minecraft/logs" "${pkgdir}/var/log/minecraft" #&>/dev/null
2015-07-03 10:16:00 -07:00
}