29 lines
665 B
Plaintext
29 lines
665 B
Plaintext
#/usr/bin/env bash
|
|
|
|
pkgname="dendrite"
|
|
pkgrel=1
|
|
pkgver="0.13.1"
|
|
pkgdesc="Dendrite is a second-generation Matrix homeserver written in Go!"
|
|
url="https://github.com/matrix-org/dendrite"
|
|
maintainer="Leafee98 <me@leafee98.com>"
|
|
|
|
source=(
|
|
"dendrite::git+https://github.com/matrix-org/dendrite.git#tag=v${pkgver}"
|
|
)
|
|
|
|
function build {
|
|
(
|
|
cd "${srcdir}/dendrite"
|
|
go build -o bin/ ./cmd/...
|
|
)
|
|
}
|
|
|
|
function package {
|
|
for f in ${srcdir}/dendrite/bin/*
|
|
do
|
|
install -Dm755 -t "${pkgdir}/usr/local/lib/dendrite/" "$f";
|
|
done
|
|
|
|
install -Dm644 "${srcdir}/dendrite/dendrite-sample.yaml" "${pkgdir}/etc/dendrite/dendrite-sample.yaml"
|
|
}
|