summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKeyLo992019-08-27 03:20:33 +0300
committerKeyLo992019-08-27 03:20:33 +0300
commitf926eb98f9c677e4d5dffc19d50d1db1f958f3d8 (patch)
tree8374497a2b6d4a488b9e925906aceff5b2ef07fe /PKGBUILD
downloadaur-f926eb98f9c677e4d5dffc19d50d1db1f958f3d8.tar.gz
Release the first version (1.0.0)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bb7ceb62e1e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: keylo99 <keylo99official@gmail.com>
+
+pkgname=pkgtop-git
+pkgdesc="Interactive package manager & resource monitor"
+pkgver=1.0.0
+pkgrel=1
+arch=('any')
+url="https://github.com/keylo99/pkgtop"
+license=('GPL3')
+depends=('git')
+makedepends=('go>=1.7')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git://github.com/keylo99/pkgtop.git#branch=master')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}/src"
+ go get -d ./...
+ go build \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "-extldflags $LDFLAGS" \
+ -o "${pkgname%-git}" .
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}/src"
+ install -Dm755 "${pkgname%-git}" "$pkgdir/usr/local/bin/${pkgname%-git}"
+} \ No newline at end of file