# Maintainer: Brodi _pkgname=activity-relay pkgname=${_pkgname} pkgver=1.2.0 pkgrel=1 pkgdesc="Yet another powerful customizable ActivityPub relay server written in Go." url="https://github.com/yukimochi/Activity-Relay" arch=("any") license=("AGPL3") depends=("go") provides=("${_pkgname}") conflicts=("${_pkgname}-git") source=("${pkgname}-${pkgver}.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz" "https://raw.githubusercontent.com/yukimochi/Activity-Relay/master/LICENCE") sha512sums=("fdac0503a10cce9234e613300c0dde18eea06e0ca56d01e9202a514be3978eb12bf5a4ef3241578a74f80966b5fd1e469a0d45b09bff8523d4b5f2bbd32a3c16" "6e90d46be391aa645bcf4dfaa67f452cb15a73749f1895633789c7763b43cc0b65d391e5e95652c9a9a2063c956e0e8099a4e1ce4b70b0636629f9eac39c1080") build() { cd "Activity-Relay-${pkgver}" go build } package() { install -d "${pkgdir}/usr/share/doc/${_pkgname}/examples/" install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENCE" pwd cd "Activity-Relay-${pkgver}" pwd install -Dm755 Activity-Relay "${pkgdir}/usr/bin/activity-relay" install -Dm755 config.yml.example "${pkgdir}/usr/share/doc/${_pkgname}/examples/config.yml.example" }