diff options
author | Vinay S Shastry | 2019-12-31 11:47:45 +0530 |
---|---|---|
committer | Vinay S Shastry | 2019-12-31 11:47:45 +0530 |
commit | cdd9323a763d0dd57efb40ca10dd37bd45a6e00a (patch) | |
tree | 733970f4f6a66a065cc74bf0a75f2550478e7395 /PKGBUILD | |
download | aur-cdd9323a763d0dd57efb40ca10dd37bd45a6e00a.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..04c3aa532390 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Vinay Shastry <vinayshastry at gmail dot com> + +pkgname=wormhole-william +pkgver=1.0.1 +pkgrel=1 +pkgdesc='A go (golang) implementation of magic wormhole. It provides secure end-to-end encrypted file transfers between computers. It is compatible with the official python magic wormhole cli tool (see magic-wormhole package).' +arch=('x86_64') +url="https://github.com/psanford/${pkgname}" +license=('MIT') +depends=('glibc') +makedepends=('go-pie' 'git') +source=("${url}/archive/v${pkgver}.tar.gz") +sha256sums=('c16469855f32689f5cc195db32f43a6f41de06e3d4e7773e38f2c791b7a9fe22') + +build() { + cd "${pkgname}-${pkgver}" + go build \ + -ldflags "-extldflags ${LDFLAGS}" \ + -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -o "${pkgname}" . +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}" + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE +} |