mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 21:12:27 +01:00
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=dendrite
|
|
pkgver=0.5.0
|
|
pkgrel=0
|
|
pkgdesc="Second-generation Matrix homeserver written in Go"
|
|
url="https://github.com/matrix-org/dendrite"
|
|
license="Apache-2.0"
|
|
# mips64: test failures due to timeouts
|
|
arch="all !mips64"
|
|
options="net" # required to download go modules
|
|
makedepends="go"
|
|
subpackages="$pkgname-openrc"
|
|
pkgusers="$pkgname"
|
|
pkggroups="$pkgname"
|
|
install="$pkgname.pre-install"
|
|
source="https://github.com/matrix-org/dendrite/archive/v$pkgver/dendrite-v$pkgver.tar.gz
|
|
dendrite.initd
|
|
dendrite.confd
|
|
"
|
|
|
|
build() {
|
|
for cmd in dendrite-monolith-server generate-keys create-account; do
|
|
go build -trimpath -ldflags="-s -w" -v -o bin/$cmd ./cmd/$cmd
|
|
done
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/dendrite-monolith-server "$pkgdir"/usr/bin/dendrite
|
|
install -Dm755 bin/generate-keys "$pkgdir"/usr/bin/dendrite-generate-keys
|
|
install -Dm755 bin/create-account "$pkgdir"/usr/bin/create-account
|
|
|
|
install -Dm644 "$builddir"/dendrite-config.yaml "$pkgdir"/etc/$pkgname/dendrite.yaml
|
|
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
19a24d2bf37e7cc93b1977fbf148d9aa79b1964afe979b28d6bd54e99e3c7da8fdb66b98e5f858cc8b08be8d16d371a674ebff1b9ae5b06574d3731112f517f5 dendrite-v0.5.0.tar.gz
|
|
92274e4f52eb0f35822d7f27279efd372b7959d8531ad7a247286727defc375ca4b4939ed7b82fa29061a0b3c923a6c41ac0f27f3cfd8acb9c96af72ffac333c dendrite.initd
|
|
a6a088683a6aebc431d3eb289bd0d4dbaede698d1a5da25d6af2aad79e9cd36db02ce9173ab6904249f23b88bca5d1630258736feef7e8266e6c22220d74fa1f dendrite.confd
|
|
"
|