# Maintainer: canony # Contributor: buckket pkgname=gotify-server-bin _pkgname=gotify-server pkgver=2.1.4 pkgrel=1 pkgdesc='A simple server for sending and receiving messages' arch=('x86_64') url='https://github.com/gotify/server' depends=('libc6') license=('MIT') provides=('gotify-server') conflicts=('gotify-server') backup=('etc/gotify/config.yml') source=("$url/releases/download/v${pkgver}/gotify-linux-amd64.zip" "https://raw.githubusercontent.com/gotify/server/v${pkgver}/config.example.yml" 'gotify-deb-defaults.patch' 'gotify-server.tmpfiles' 'gotify-server.sysusers' 'gotify-server.service') sha256sums=('98b126e5d934d45b1390b1a1b9136e7690518bfdbb731a75a45a55e86291af4b' 'd6f9716c7f67cfb518f3f50a18cbc950ef3e8e9c8ba1f226654dfdd3bf8226d4' '9217eca57733f40a0a5691d962db01ae294f7a32f234bd56003878802106f542' '14bd1a9270b089b99d9bbe8ebdd0c208c3f74c7347a792d508ffce75b0e1c641' '4fbff6e5ade1ec96cff61b4bc933ef7771f63b6df5c8e43323a8fe4d341a5a4d' 'bcfa3f4cc7ffa44a41ea7247ca4bf879bea6e6e1da79f85ed9bb4141b8501028') prepare() { patch --follow-symlinks --forward --strip=1 --input="${srcdir}/gotify-deb-defaults.patch" } package() { install -Dm755 gotify-linux-amd64 "${pkgdir}/usr/bin/${_pkgname}" install -Dm644 config.example.yml "${pkgdir}/etc/gotify/config.exaple.yml" install -Dm644 ${_pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ install -Dm644 ${_pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${_pkgname}.conf install -Dm644 ${_pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${_pkgname}.conf install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}/" }