[arch-commits] Commit in delve/repos (community-x86_64 community-x86_64/PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Wed Mar 7 18:11:09 UTC 2018
Date: Wednesday, March 7, 2018 @ 18:11:09
Author: foxboron
Revision: 304113
archrelease: copy trunk to community-x86_64
Added:
delve/repos/community-x86_64/
delve/repos/community-x86_64/PKGBUILD
(from rev 304112, delve/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: delve/repos/community-x86_64/PKGBUILD (from rev 304112, delve/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-03-07 18:11:09 UTC (rev 304113)
@@ -0,0 +1,31 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+pkgname=delve
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="A debugger for the Go programming language."
+arch=('x86_64')
+url="https://github.com/derekparker/delve"
+license=('MIT')
+makedepends=('go-pie')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/derekparker/delve/archive/v${pkgver}.tar.gz")
+sha256sums=('38117c9db41db23a27a1c2e99be17d7fb73d1653de0751ee1262b460a2b26dc4')
+
+prepare(){
+ export GOPATH="${srcdir}"
+ mkdir -p src
+ mv "${pkgname}-${pkgver}"/vendor/* src/
+ mkdir -p src/github.com/derekparker
+ ln -rTsf "${pkgname}-${pkgver}" src/github.com/derekparker/delve
+}
+
+build(){
+ cd "${pkgname}-${pkgver}"
+ export GOPATH="${srcdir}"
+ make build
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm755 dlv "${pkgdir}/usr/bin/dlv"
+}
More information about the arch-commits
mailing list