# Contributor: 6543 <6543@obermui.de> # Maintainer: 6543 <6543@obermui.de> pkgname=tea pkgver=0.6.0 pkgrel=0 pkgdesc="A command line tool to interact with Gitea servers" url="https://gitea.com/gitea/tea" arch="all !mips !mips64" # go is missing license="MIT" makedepends="go" options="!check" # no testsuite subpackages="$pkgname-bash-completion" source="$pkgname-$pkgver.tar.gz::https://gitea.com/gitea/tea/archive/v$pkgver.tar.gz bash_autocomplete " builddir="$srcdir/src/code.gitea.io/$pkgname" prepare() { mkdir -p "${builddir%/*}" mv $pkgname "$builddir" default_prepare } build() { export GOPATH="$srcdir" export TEA_VERSION="$pkgver" unset LDFLAGS make build } package() { install -Dm755 "$builddir"/$pkgname "$pkgdir"/usr/bin/$pkgname install -Dm644 "$srcdir"/bash_autocomplete "$pkgdir"/usr/share/bash-completion/completions/tea } sha512sums="28d072c5ab5f79a1512fd22f6e4f6ffb557349c709530313dce1914b961d70a32d34a3336ebb267dcd7e6b0366084145a05f54c59d57f1f08663a190fa2cc891 tea-0.6.0.tar.gz d89c90cde59ec43c0ff3eb9db9928cbb8be765e264eff8dabf2889507a5fe5d4799d89a7b02832c11954d684f232e1265f4aa740c9c5e26954d2ac8f7d4a7a57 bash_autocomplete"