summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sonntag2022-03-05 15:49:52 +0100
committerJan Sonntag2022-03-05 15:50:57 +0100
commit9b9db53c51883e5002dd55807f28bab9c6ac84a5 (patch)
tree3b0f23ab1b223a230fcc56a694a1e13ced35d700
parentf57a86f7992ac61dd58e35b9e8b6f63400dc66b0 (diff)
downloadaur-9b9db53c51883e5002dd55807f28bab9c6ac84a5.tar.gz
Clean up PKGBUILD and update to 0.5.3
-rw-r--r--PKGBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ea330dd86cb..491b509804c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
-# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+# Maintainer: Jan Sonntag <jaso35 at gmail dot com>
+# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=asciigraph
-pkgver=0.5.1
+pkgver=0.5.3
pkgrel=1
pkgdesc="Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies"
arch=('x86_64')
@@ -9,28 +10,31 @@ url='https://github.com/guptarohit/asciigraph'
license=('BSD')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/guptarohit/asciigraph/archive/v${pkgver}.tar.gz")
-sha256sums=('2149a341868f128c78a997a93a37baf99fd8080dfe3e6219fe9370febc6a05f5')
+sha256sums=('d3ec93332c8dc6cc26e04c015bd6f641b44fdf6892ec50121b6891b7c577c933')
prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
mkdir -p build/
}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- export GOPATH="${srcdir}"/go
- export PATH=$PATH:$GOPATH/bin
- go get -d -v ./...
go build -o build ./cmd/...
}
+check() {
+ cd "$pkgname-$pkgver"
+ go test .
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
install -Dm755 build/asciigraph "${pkgdir}/usr/bin/asciigraph"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/asciigraph/LICENSE"
+ install -Dm644 README.md "${pkgdir}/usr/share/licenses/asciigraph/README.md"
}