diff options
author | Fredy García | 2018-11-17 15:09:52 -0500 |
---|---|---|
committer | Fredy García | 2018-11-17 15:09:52 -0500 |
commit | 7226eabb86859edcaf418f75bab25d39f19d5a12 (patch) | |
tree | 151235986988054cf5cfd519da984182e8c89684 /PKGBUILD | |
parent | cf4be235344435e6986547635191b07ae3789eac (diff) | |
download | aur-7226eabb86859edcaf418f75bab25d39f19d5a12.tar.gz |
Adding correct git commit and adding .tar.gz to source file.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 22 insertions, 21 deletions
@@ -2,36 +2,37 @@ # Maintainer: Maxim Baz <$pkgbuild at maximbaz dot com> _pkgauthor=GoogleContainerTools +_commit=34651689be78b2c6bcfbace5072b00b93661f895 pkgname=skaffold pkgver=0.18.0 -pkgrel=2 -pkgdesc='A command line tool that facilitates continuous development for Kubernetes applications' -arch=('x86_64') -url="https://github.com/$_pkgauthor/$pkgname" -license=('Apache') -depends=('docker' 'kubectl-bin') -makedepends=('go-pie') -optdepends=('google-cloud-sdk: To use GKE' - 'minikube: To use Minikube') -source=("$pkgname-$pkgver::https://github.com/$_pkgauthor/$pkgname/archive/v$pkgver.tar.gz" - 'build_flags.patch') -sha256sums=('3ec621485d2ebeac3366346271527326c3c97115784597bff457ccce162be008' - '03be8856eec2169b72fae7369ce11c32a66cd49638e4e68bae7f63b0d5519a6a') +pkgrel=3 +pkgdesc="A command line tool that facilitates continuous development for Kubernetes applications" +arch=("x86_64") +url="https://github.com/${_pkgauthor}/${pkgname}" +license=("Apache") +depends=("docker" "kubectl-bin") +makedepends=("go-pie") +optdepends=("google-cloud-sdk: To use GKE" + "minikube: To use Minikube") +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgauthor}/${pkgname}/archive/v${pkgver}.tar.gz" + "build_flags.patch") +sha256sums=("3ec621485d2ebeac3366346271527326c3c97115784597bff457ccce162be008" + "3e32d942fa54099a5f14dd65ef3c08e5a89a82cd90f1cd05a43715e4ba597d06") prepare() { - mkdir -p "gopath/src/github.com/$_pkgauthor" - ln -rTsf "$pkgname-$pkgver" "gopath/src/github.com/$_pkgauthor/$pkgname" + mkdir -p "${srcdir}/gopath/src/github.com/${_pkgauthor}" + ln -rTsf "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}" - cd "$pkgname-$pkgver" - patch -Np1 -i ../build_flags.patch + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/build_flags.patch" } build() { - export GOPATH="$srcdir/gopath" - cd "gopath/src/github.com/$_pkgauthor/$pkgname" - VERSION="v$pkgver" make install + export GOPATH="${srcdir}/gopath" + cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}" + VERSION="v${pkgver}" COMMIT="${_commit}" TREE_STATE="clean" make install } package() { - install -Dm755 "gopath/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm755 "${srcdir}/gopath/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" } |