# Maintainer: simonsmh pkgname=okteto pkgver=2.17.0 pkgrel=1 pkgdesc="Build better applications by developing and testing your code directly in Kubernetes." arch=(x86_64 aarch64) url="https://github.com/okteto/okteto" license=(Apache) optdepends=(kubectl) makedepends=(go-pie) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/okteto/okteto/archive/${pkgver}.tar.gz") sha256sums=('7b5e7b7b37bc8de667d6f7544519a8f8b40f929719f80d0c4c1371715a30b8c1') build() { cd "$pkgname-$pkgver" go build -ldflags "-s -w -X github.com/okteto/okteto/pkg/config.VersionString=$pkgver" -tags "osusergo netgo static_build" -o okteto } package() { cd "$pkgname-$pkgver" install -Dm755 okteto "$pkgdir"/usr/bin/okteto install -Dm644 README.md -t "$pkgdir"/usr/share/doc/"$pkgname" install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE }