Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package Request: dendrite #27818

Closed
Anachron opened this issue Jan 11, 2021 · 2 comments · Fixed by #34358
Closed

Package Request: dendrite #27818

Anachron opened this issue Jan 11, 2021 · 2 comments · Fixed by #34358
Labels
request Package request

Comments

@Anachron
Copy link
Contributor

https://github.com/matrix-org/dendrite

Dendrite is a second-generation Matrix homeserver written in Go. It intends to provide an efficient, reliable and scalable alternative to Synapse

As of October 2020, Dendrite has now entered beta

@Anachron
Copy link
Contributor Author

Anachron commented Jan 11, 2021

I'm currently trying to package this.

Edit: It builds. will try it out soon.

=> dendrite-0.3.4_1: running pre-pkg hook: 999-collected-rdeps ...
   glibc>=2.29_1
=> dendrite-0.3.4_1: running do-pkg hook: 00-gen-pkg ...
=> Creating dendrite-0.3.4_1.x86_64.xbps for repository /host/binpkgs/dendrite ...
=> dendrite-0.3.4_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs/dendrite
index: added `dendrite-0.3.4_1' (x86_64).
index: 1 packages registered.
=> dendrite-0.3.4_1: removing autodeps, please wait...
=> dendrite-0.3.4_1: cleaning build directory...
=> dendrite: removing files from destdir...
[11.01.2021-08:08:18] (dendrite) pkg:finish (RC=0)

Template file

# Template file for 'dendrite'
pkgname=dendrite
version=0.3.4
revision=1
#build_style=go
makedepends="go"
#go_package="github.com/matrix-org/dendrite"
#go_import_path="${go_package}"
short_desc="Second-generation Matrix homeserver written in Go"
maintainer="Anachron <gith@cron.world>"
license="Apache-2.0"
homepage="https://github.com/matrix-org/dendrite"
distfiles="https://github.com/matrix-org/dendrite/archive/v${version}.tar.gz"
checksum=9362ed8dac9d42936e5f53b380eeaad1e3de2abbb07c9abeaad92820fe5c2bd9

do_build() {
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  #export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
  go build ./cmd/dendrite-monolith-server
  go build ./cmd/generate-config
  go build ./cmd/generate-keys
}

do_check() {
  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  #export CGO_LDFLAGS="${LDFLAGS}"
  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
  go test ./cmd/dendrite-monolith-server
}

do_install() {
  vbin dendrite-monolith-server
  vbin generate-config ${pkgname}-generate-config
  vbin generate-keys ${pkgname}-generate-keys
  vconf dendrite-config.yaml
}

@ericonr
Copy link
Member

ericonr commented Jan 19, 2021

Why are so many vars required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Package request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants