summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Manna2019-04-13 20:39:15 -0700
committerKyle Manna2019-04-13 20:39:15 -0700
commite30bc2ffcfa42d4b8c09dda2b0bf80058a528f61 (patch)
tree8d00f67114b1379da1e5d11a9bab845d023e9166
parent0caa875ba4a187fd745899f9be8a0be2620e211f (diff)
downloadaur-e30bc2ffcfa42d4b8c09dda2b0bf80058a528f61.tar.gz
PKGBUILD: Clean-up misc stuff
* No functional changes.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD23
2 files changed, 13 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4af3a80bad4..d4576248ba2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
# Generated by mksrcinfo v8
-# Sun Apr 14 03:32:16 UTC 2019
+# Sun Apr 14 03:38:45 UTC 2019
pkgbase = do-agent
pkgdesc = DigitalOcean Agent for Enhanced Droplet Graphs
pkgver = 2.1.3
pkgrel = 1
url = https://github.com/digitalocean/do-agent
arch = x86_64
- license = apache
+ license = Apache
makedepends = go
source = https://github.com/digitalocean/do-agent/archive/2.1.3.tar.gz
source = do-agent.service
diff --git a/PKGBUILD b/PKGBUILD
index ef23af6144c..de9d3a4a2c4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,9 +8,8 @@ url='https://github.com/digitalocean/do-agent'
arch=('x86_64')
makedepends=('go')
depends=()
-_gourl='github.com/digitalocean/do-agent'
-license=('apache')
+license=('Apache')
source=("https://github.com/digitalocean/${pkgname}/archive/${pkgver}.tar.gz"
"do-agent.service")
@@ -19,20 +18,20 @@ sha512sums=('aa90753a19354f5fe8a3c7744197df5b01524ab1c68965139f893a90c8222b7b291
'19d040ae8a75a73a86c1b473983ecf84410fc6a24a7f9142e98dc00c6dbda1ff1f2e2caec0d37bb3c6f557133644ea91f49a75697f5c4bdc23af56407d1fbcaa')
prepare() {
- cd "$srcdir"
- mkdir -p go/src/github.com/digitalocean
- mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/github.com/digitalocean/$pkgname"
- ln -s "$srcdir/go/src/github.com/digitalocean/$pkgname" "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir"
+ mkdir -p go/src/github.com/digitalocean
+ mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/github.com/digitalocean/$pkgname"
+ ln -s "$srcdir/go/src/github.com/digitalocean/$pkgname" "$srcdir/$pkgname-$pkgver"
}
build() {
- export GOPATH=$srcdir/go
- cd "$srcdir/go/src/github.com/digitalocean/$pkgname"
- make build
+ cd "$srcdir/go/src/github.com/digitalocean/$pkgname"
+ export GOPATH=$srcdir/go
+ make build
}
package() {
- install -d $pkgdir/usr/{bin,lib/systemd/system}
- install -Dm755 "$srcdir/$pkgname-$pkgver/target/do-agent-linux-amd64" "$pkgdir/usr/bin/do-agent"
- install -Dm644 "$srcdir/do-agent.service" "$pkgdir/usr/lib/systemd/system/do-agent.service"
+ install -d $pkgdir/usr/{bin,lib/systemd/system}
+ install -Dm755 "$srcdir/$pkgname-$pkgver/target/do-agent-linux-amd64" "$pkgdir/usr/bin/do-agent"
+ install -Dm644 "$srcdir/do-agent.service" "$pkgdir/usr/lib/systemd/system/do-agent.service"
}