commit 7968539a0e8a902bed202c0a4d89b8b3880ca9cf Author: John K. Luebs Date: Sat Mar 28 22:00:15 2020 -0400 initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..76a8ea2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = gitea-tea + pkgdesc = Painless self-hosted Git service.. + pkgver = 0.2.0 + pkgrel = 1 + url = https://gitea.io + arch = x86_64 + license = MIT + makedepends = go-pie + source = git+https://gitea.com/gitea/tea.git#tag=12f38c892f5d34ea58edd6fda15e7f0691d8d7cd + sha256sums = SKIP + +pkgname = gitea-tea + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9161557 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: John K. Luebs + +pkgname=gitea-tea +_pkgname=tea +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Painless self-hosted Git service.." +arch=(x86_64) +url="https://gitea.io" +license=(MIT) +makedepends=(go-pie) +_tag=12f38c892f5d34ea58edd6fda15e7f0691d8d7cd +source=("git+https://gitea.com/gitea/tea.git#tag=${_tag}") +sha256sums=(SKIP) + +build() { + cd ${_pkgname} + go build -mod=vendor \ + -trimpath \ + -ldflags "-extldflags $LDFLAGS" . +} + +package() { + cd ${_pkgname} + + install -Dm755 ${_pkgname} -t "${pkgdir}"/usr/bin/ + install -Dm755 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ +}