# Maintainer: dplusplus # Contributor: Sefa Eyeoglu # Contributor: Philip Abernethy _pkgname=tshock pkgname=${_pkgname}-bin pkgver=5.2 _terraria_ver=1.4.4.9 # Because of tag 4.2200 is 4.2.2.1228 and tag 4.2202 is 4.2.2.0224 epoch must be 1 epoch=1 pkgrel=1 pkgdesc="A Terraria Server administration modification that runs on the open source TerrariaAPI." arch=("x86_64") url="https://github.com/Pryaxis/TShock" license=("GPL3") depends=("mono" "tmux") provides=($_pkgname) conflicts=($_pkgname) source=( "${_pkgname}_${pkgver}.zip::https://github.com/Pryaxis/TShock/releases/download/v5.2.0/TShock-${pkgver}-for-Terraria-${_terraria_ver}-linux-x64-Release.zip" "${_pkgname}.sh" "default.conf" "${_pkgname}@.service" "${_pkgname}.sysusers" "${_pkgname}.tmpfiles" "${_pkgname}.install" ) noextract=("${_pkgname}_${pkgver}.zip") sha512sums=('17c593ec07d2b04765ddbeb3e58bb5dfe0f0d9ada883c97d8ccc3303148d6e2fda64103586274c3ba16f6550a41a171db87b45033ce9841e49647fdc3b199c09' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' ) install="tshock.install" backup=("etc/conf.d/${_pkgname}/default.conf") package() { install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}" install -Dm644 "default.conf" "${pkgdir}/etc/conf.d/${_pkgname}/default.conf" # Unzip server files install -d "${pkgdir}/srv/${_pkgname}" bsdtar -x -f "${_pkgname}_${pkgver}.zip" -C "${pkgdir}/srv/${_pkgname}" install -Dm644 "${_pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}@.service" install -Dm644 "${_pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf" install -Dm644 "${_pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf" }