diff options
author | quest | 2019-12-06 23:58:09 -0800 |
---|---|---|
committer | quest | 2019-12-06 23:58:09 -0800 |
commit | c8cae479855f411479fb8cb33e34ca38336f014c (patch) | |
tree | 226ce208847cb16e28bd878053b44c06353cb07e | |
download | aur-c8cae479855f411479fb8cb33e34ca38336f014c.tar.gz |
Initial commit for bchd 0.15.2
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..48e7dff81172 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = bchd + pkgdesc = BCHD is an alternative BCH implementation written in Go. + pkgver = 0.15.2 + pkgrel = 0 + url = http://github.com/gcash/bchd + arch = i686 + arch = x86_64 + license = MIT + makedepends = go + makedepends = git + provides = s=0.15.2 + options = !strip + options = !emptydirs + source = https://github.com/gcash/bchd/archive/v0.15.2.tar.gz + sha256sums = 9f627d611a732466cc504aae7b54830aa5f58c6421db66d914a8d68b471bd17b + +pkgname = bchd + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..031c298126c8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Josh Ellithorpe <quest at mac dot com> + +pkgname=bchd +pkgver=0.15.2 +pkgrel=0 +pkgdesc="BCHD is an alternative BCH implementation written in Go." +arch=('i686' 'x86_64') +url="http://github.com/gcash/bchd" +license=('MIT') +makedepends=('go' 'git') +options=('!strip' '!emptydirs') +provides=("s=${pkgver}") +source=("https://github.com/gcash/${pkgname}/archive/v${pkgver}.tar.gz") +sha256sums=('9f627d611a732466cc504aae7b54830aa5f58c6421db66d914a8d68b471bd17b') + +build() { + mkdir -p "${srcdir}/go/src/github.com/gcash" + export GOPATH="${srcdir}/go" + export GOBIN="$GOPATH/bin" + + mv "$pkgname-$pkgver" "$GOPATH/src/github.com/gcash/bchd" + cd "$GOPATH/src/github.com/gcash/bchd" + + make +} + +package() { + cd "${srcdir}/go/src/github.com/gcash/bchd" + + install -Dm 775 "bchd" \ + "${pkgdir}/usr/bin/${pkgname}" + install -Dm 775 "bchctl" \ + "${pkgdir}/usr/bin/bchctl" + install -Dm 644 "LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |