diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..65f17fc1fc8f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Stefan Tatschner <stefan@rumpelsepp.org> + +pkgname=dendrite +pkgver=0.1.0rc2 +pkgrel=1 +pkgdesc="A second-generation Matrix homeserver written in Go" +arch=('x86_64') +url='https://github.com/matrix-org/dendrite' +license=('Apache') +makedepends=('go') +source=("git+https://github.com/matrix-org/dendrite.git#tag=v${pkgver}") +sha256sums=('SKIP') + +build() { + cd "$pkgname" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -modcacherw" + go build ./cmd/dendrite-monolith-server +} + +package() { + cd "$pkgname" + install -Dm755 dendrite-monolith-server "${pkgdir}/usr/bin/dendrite" +} |