make use of makdeb on dendrites

This commit is contained in:
leafee98 2023-04-03 20:47:37 +08:00
parent 5ca712925b
commit 46cbbec97c

29
dendrite/DEBBUILD Normal file
View file

@ -0,0 +1,29 @@
#/usr/bin/env bash
pkgname="dendrite"
pkgrel=1
pkgver="0.12.0"
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"
bash build.sh
)
}
function package {
for f in ${srcdir}/dendrite/bin/*
do
install -Dm755 -t "${pkgdir}/usr/local/lib/dendrite/" "$f";
done
# install -Dm755 --target-directory "${pkgdir}/usr/local/lib/dendrite/" ${srcdir}/dendrite/bin/*
# install -Dm644 "${srcdir}/dufs.service" "${pkgdir}/usr/lib/systemd/system/dufs.service"
}