diff options
author | Colin Arnott | 2021-04-08 11:41:59 +0000 |
---|---|---|
committer | Colin Arnott | 2021-04-08 11:41:59 +0000 |
commit | 82c8a1a7340864777d171cf210286c8fa6dda344 (patch) | |
tree | 878cc7cad0cc7138ee0e6daaf7d117799c3fac9e /PKGBUILD | |
parent | e62424fcfa9abc2c4986ecaa41864b80b6993e7f (diff) | |
download | aur-82c8a1a7340864777d171cf210286c8fa6dda344.tar.gz |
r38.44cbada-1
pull, modules, gitignore
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -2,28 +2,34 @@ # Co-Maintainer: Luca Weiss <WEI16416@spengergasse.at> pkgname=azure-vhd-utils-git -pkgver=r7.d206e6d +pkgver=r38.44cbada pkgrel=1 pkgdesc="Azure VHD utilities for Go." -arch=('x86_64' 'i686') +arch=('any') url="https://github.com/Microsoft/azure-vhd-utils" license=('MIT') makedepends=('go' 'git') -provides=("${pkgname%-git}") -conflicts=("${pkgname%-git}") -options=('!strip' '!emptydirs') +source=("git+${url}") +sha512sums=('SKIP') pkgver() { - cd $srcdir/src/$_gourl/ + cd "${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -prepare() { - export GOPATH="$srcdir" - go get -fix -v -x ${url#https://} +build() { + cd ${pkgname%-git} + go build \ + -o=vhd \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + . } package() { - install -Dm755 $srcdir/bin/azure-vhd-utils "$pkgdir/usr/bin/vhd" - install -Dm644 $srcdir/src/${url#https://}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd ${pkgname%-git} + install -Dm755 vhd -t "$pkgdir/usr/bin/" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname" } |