[arch-commits] Commit in (gx-go gx-go/repos gx-go/trunk gx-go/trunk/PKGBUILD)
Johannes Löthberg
demize at archlinux.org
Sat May 26 22:13:50 UTC 2018
Date: Saturday, May 26, 2018 @ 22:13:50
Author: demize
Revision: 331296
Import gx-go
Added:
gx-go/
gx-go/repos/
gx-go/trunk/
gx-go/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Added: gx-go/trunk/PKGBUILD
===================================================================
--- gx-go/trunk/PKGBUILD (rev 0)
+++ gx-go/trunk/PKGBUILD 2018-05-26 22:13:50 UTC (rev 331296)
@@ -0,0 +1,44 @@
+# Contributor: Johannes Löthberg <johannes at kyriasis.com>
+# Maintainer: Jakub "Kubuxu" Sztandera <kubuxu at protonmail.ch>
+
+pkgname=gx-go
+pkgver=1.7.0
+pkgrel=1
+
+pkgdesc="A tool to use with the gx package manager for packages written in go"
+url="https://github.com/whyrusleeping/gx-go"
+arch=('x86_64')
+license=('MIT')
+
+makedepends=('git' 'go-pie')
+depends=('glibc' 'go')
+
+source=("git+https://github.com/whyrusleeping/gx-go.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ mkdir -p "$srcdir"/src/github.com/whyrusleeping/
+ ln -fs "$srcdir/gx-go" "$srcdir"/src/github.com/whyrusleeping/gx-go
+}
+
+build() {
+ # Required for go get
+ export GOPATH="$srcdir"
+ export GOBIN="$GOPATH/bin"
+ cd "$srcdir"/src/github.com/whyrusleeping/gx-go
+
+ msg2 'Installing dependencies...'
+ go get -v
+
+ msg2 'Building binary...'
+ go install -v
+}
+
+package() {
+ msg2 'Packaging binary...'
+ install -Dm 755 bin/gx-go "${pkgdir}/usr/bin/gx-go"
+
+ msg2 'Packaging auxiliary files...'
+ cd gx-go
+ install -Dm 644 -t "${pkgdir}/usr/share/licenses/gx-go" LICENSE
+}
Property changes on: gx-go/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list