debian-packages/packages/normal/dendrite/DEBBUILD

30 lines
678 B
Plaintext
Raw Normal View History

2023-04-03 12:47:37 +00:00
#/usr/bin/env bash
pkgname="dendrite"
arch="amd64"
2023-04-03 12:47:37 +00:00
pkgrel=1
2023-12-13 08:13:45 +00:00
pkgver="0.13.5"
2023-04-03 12:47:37 +00:00
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"
2023-06-30 14:06:04 +00:00
go build -o bin/ ./cmd/...
2023-04-03 12:47:37 +00:00
)
}
function package {
for f in ${srcdir}/dendrite/bin/*
do
install -Dm755 -t "${pkgdir}/usr/local/lib/dendrite/" "$f";
done
2023-06-30 14:06:04 +00:00
install -Dm644 "${srcdir}/dendrite/dendrite-sample.yaml" "${pkgdir}/etc/dendrite/dendrite-sample.yaml"
2023-04-03 12:47:37 +00:00
}