Github messages for voidlinux
 help / color / mirror / Atom feed
From: Anachron <Anachron@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package Request: dendrite
Date: Mon, 11 Jan 2021 08:54:15 +0100	[thread overview]
Message-ID: <20210111075415.6YGtH-yX1qyIFcmQSMtiPD5Yk1bqtknmM3WjwxG2oiM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27818@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2236 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/27818#issuecomment-757653973

Comment:
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
```bash
# 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
}

```

  parent reply	other threads:[~2021-01-11  7:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-11  6:21 [ISSUE] " Anachron
2021-01-11  6:35 ` Anachron
2021-01-11  7:08 ` Anachron
2021-01-11  7:49 ` Anachron
2021-01-11  7:54 ` Anachron [this message]
2021-01-19 21:47 ` ericonr
2022-03-03 21:47 ` [ISSUE] [CLOSED] " paper42

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210111075415.6YGtH-yX1qyIFcmQSMtiPD5Yk1bqtknmM3WjwxG2oiM@z \
    --to=anachron@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).