-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
61 lines (53 loc) · 2.62 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Johannes Joens <[email protected]>
# Contributer: Misterio <[email protected]>
# Contributer: Gordian Edenhofer <[email protected]>
# Contributer: Philip Abernethy <[email protected]>
# Contributer: sowieso <[email protected]>
pkgname=bungeecord
pkgver=1532
pkgrel=6
pkgdesc="BungeeCord is a sophisticated proxy and API designed mainly to teleport players between multiple Minecraft servers."
arch=('any')
url="https://www.spigotmc.org/"
license=('custom')
depends=('java-runtime-headless>=8' 'screen' 'sudo' 'bash' 'awk' 'sed')
optdepends=("tar: needed in order to create world backups"
"nmap-netcat: required in order to suspend an idle server")
backup=('etc/conf.d/bungeecord')
install="${pkgname}.install"
_subserver=proxy
source=("${pkgname}.${pkgver}.jar"::"https://ci.md-5.net/job/BungeeCord/${pkgver}/artifact/bootstrap/target/BungeeCord.jar"
"${pkgname}[email protected]"
"${pkgname}-backup.timer"
"${pkgname}@.service"
"${pkgname}.conf"
"${pkgname}.sh"
"${_subserver}.conf"
"LICENSE"::"https://raw.githubusercontent.com/SpigotMC/BungeeCord/master/LICENSE")
noextract=("${pkgname}.${pkgver}.jar")
_server_root="/srv/bungeecord"
package() {
install -Dm644 ${pkgname}.conf "${pkgdir}/etc/conf.d/${pkgname}"
install -Dm755 ${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 ${pkgname}@.service "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service"
install -Dm644 ${pkgname}[email protected] "${pkgdir}/usr/lib/systemd/system/${pkgname}[email protected]"
install -Dm644 ${pkgname}-backup.timer "${pkgdir}/usr/lib/systemd/system/${pkgname}-backup.timer"
install -Dm644 ${_subserver}.conf "${pkgdir}${_server_root}/servers/${_subserver}.conf"
install -Dm644 ${pkgname}.${pkgver}.jar "${pkgdir}${_server_root}/servers/${_subserver}/${pkgname}.${pkgver}.jar"
ln -s "${pkgname}.${pkgver}.jar" "${pkgdir}${_server_root}/servers/${_subserver}/server.jar"
# Link the log files
mkdir -p "${pkgdir}/var/log/"
install -dm2755 "${pkgdir}/${_server_root}/servers/${_subserver}/logs"
ln -s "${_server_root}/logs" "${pkgdir}/var/log/${pkgname}"
# Give the group write permissions and set user or group ID on execution
chmod g+ws "${pkgdir}${_server_root}"
install -D ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
md5sums=('4d97ea8f661e1b1295ce1a36eb3b022b'
'5a8269dd7e7f29b5b66ec867867da6c3'
'360e85e09794e41552bf257f4e655507'
'de4e626d540090bc211349725eba4071'
'1b12e11d8089fdb0a7ea4cd09d788467'
'd08f160d1dff2b980312b1758aff586e'
'68c2350a4584fb7c9b7edaa857e44761'
'SKIP')