[arch-commits] Commit in keybase/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Tue Feb 13 20:22:42 UTC 2018
Date: Tuesday, February 13, 2018 @ 20:22:42
Author: eschwartz
Revision: 293916
upgpkg: keybase 1.0.41-2
FS#56831 Install the keybase.service
Also install kbnm and the native messaging whitelists
Modified:
keybase/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-02-13 18:34:56 UTC (rev 293915)
+++ PKGBUILD 2018-02-13 20:22:42 UTC (rev 293916)
@@ -5,33 +5,42 @@
pkgname=keybase
pkgdesc='CLI tool for GPG with keybase.io'
pkgver=1.0.41
-pkgrel=1
+pkgrel=2
arch=('x86_64')
-url='http://keybase.io/'
+url='https://keybase.io/'
license=('BSD')
depends=('gnupg')
-makedepends=('go-pie' 'git' 'mercurial')
+makedepends=('go-pie')
source=("$pkgname-$pkgver.tar.gz::https://github.com/keybase/client/archive/v$pkgver.tar.gz")
sha512sums=('1382f008089d8704167842960aec9e4007ac32db589bad45944428ad92ac90b1802338ff6ccc0c570d40b9c9115170a2e15c590f875cdc8261d203c01402385c')
+
prepare() {
cd client-$pkgver
- mkdir -p .gopath/src
- mv go/vendor/* .gopath/src/
- mkdir -p .gopath/src/github.com/keybase
- ln -sf "$PWD" .gopath/src/github.com/keybase/client
- export GOPATH="$PWD/.gopath"
+ export GOPATH="$srcdir/.gopath"
+ mkdir -p "$GOPATH"/src/github.com/keybase
+ ln -sf "$PWD" "$GOPATH"/src/github.com/keybase/client
}
build() {
cd client-$pkgver/go/keybase
+
+ export GOPATH="$srcdir/.gopath"
# go build -a -tags production -gccgoflags "$CFLAGS $LDFLAGS" github.com/keybase/client/go/keybase
- go build -a -tags production github.com/keybase/client/go/keybase
+ go build -a -tags production -o ../bin/keybase github.com/keybase/client/go/keybase
+ go build -a -tags production -o ../bin/kbnm github.com/keybase/client/go/kbnm
}
package() {
cd client-$pkgver
- install -Dm755 go/keybase/keybase "$pkgdir"/usr/bin/keybase
+
+ install -Dm755 -t "$pkgdir"/usr/bin/ go/bin/*
+
+ # native messaging whitelists
+ KBNM_INSTALL_ROOT=1 KBNM_INSTALL_OVERLAY="$pkgdir" "$pkgdir/usr/bin/kbnm" install
+ # systemd activation
+ install -Dm755 packaging/linux/systemd/keybase.service "$pkgdir"/usr/lib/systemd/user/keybase.service
+
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list