aur_gitea-tea/PKGBUILD

28 lines
572 B
Bash
Raw Normal View History

2020-03-29 02:00:15 +00:00
# Maintainer: John K. Luebs <jkl at johnluebs dot tld>
pkgname=gitea-tea
_pkgname=tea
2020-07-16 13:04:20 +00:00
pkgver=0.3.1
2020-03-29 02:00:15 +00:00
pkgrel=1
pkgdesc="Painless self-hosted Git service.."
arch=(x86_64)
url="https://gitea.io"
license=(MIT)
makedepends=(go-pie)
2020-07-16 13:04:20 +00:00
source=("git+https://gitea.com/gitea/tea.git#tag=v${pkgver}")
2020-03-29 02:00:15 +00:00
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}/
}