diff options
author | Chris Trotman | 2016-12-28 18:33:24 +1100 |
---|---|---|
committer | Chris Trotman | 2016-12-28 18:33:24 +1100 |
commit | d491793ee3693d366f5a1f5dbf20cbd9ad139897 (patch) | |
tree | 1d4712a7755cbf94ca8c0b536cfeafffdc09fb32 | |
download | aur-ec2-fzf.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a30e1fa1af4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Wed Dec 28 07:33:08 UTC 2016 +pkgbase = ec2-fzf + pkgdesc = Quickly get the address details of ec2 instances + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/solarnz/ec2-fzf + arch = x86_64 + license = MIT + makedepends = go + makedepends = git + conflicts = ec2-fzf-bin + source = ec2-fzf::git+https://github.com/solarnz/ec2-fzf.git#tag=v1.0 + sha256sums = SKIP + +pkgname = ec2-fzf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e19415547ecd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Chris Trotman <chris+aur@trotman.io> + +pkgname=ec2-fzf +pkgver=1.0 +pkgrel=1 +pkgdesc="Quickly get the address details of ec2 instances" +url='https://github.com/solarnz/ec2-fzf' +arch=('x86_64') +license=('MIT') +makedepends=('go' 'git') +conflicts=('ec2-fzf-bin') +_gourl=github.com/solarnz +source=("${pkgname}::git+https://${_gourl}/${pkgname}.git#tag=v${pkgver}") +sha256sums=('SKIP') + +prepare() { + mkdir -p "${srcdir}/src/${_gourl}" + rm -rf "${srcdir}/src/${_gourl}/${pkgname}" + mv -f "${pkgname}" "${srcdir}/src/${_gourl}/${pkgname}" +} + +build() { + msg2 "Build program" + cd "${srcdir}/src/${_gourl}/${pkgname}" + cd "cmd/ec2-fzf" + GOPATH="${srcdir}" PATH="${srcdir}/bin:${PATH}" go install +} + +package() { + cd "${srcdir}/bin" + install -Dm755 ec2-fzf "${pkgdir}/usr/bin/ec2-fzf" +} |