debian-packages/packages/normal/dendrite/DEBBUILD
leafee98 82734470d2
All checks were successful
ci/woodpecker/push/build Pipeline was successful
refactor package directory, enhance build script
- update makedeb
- use bin, git, normal, leafee98 to classify packages
- only build package from leafee98 and bin in ci
- add script to build all packages locally
- add more log about running hook in build.sh
2023-08-18 17:28:14 +08:00

30 lines
678 B
Plaintext

#/usr/bin/env bash
pkgname="dendrite"
arch="amd64"
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"
}