summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Bolton2018-09-16 00:48:36 +1200
committerBenjamin Bolton2018-09-16 00:48:36 +1200
commitd6d3be15355a2ee95f261a2d6b332c0549ff37e9 (patch)
tree47aa6c48a88bcf725598b7bd07b0244e3ee6aa29
downloadaur-bstatus-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD29
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b678fe4e834
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Sat Sep 15 12:45:52 UTC 2018
+pkgbase = bstatus-git
+ pkgdesc = A simple status line generator
+ pkgver = 0.2.0.r0.gdbc872a
+ pkgrel = 1
+ url = https://github.com/BennyBolton/bstatus
+ arch = any
+ license = MIT
+ makedepends = nodejs
+ makedepends = npm
+ depends = nodejs
+ source = git+https://github.com/BennyBolton/bstatus
+ sha256sums = SKIP
+
+pkgname = bstatus-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2cdfe69ea9b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Benjamin Bolton <bennybolton@gmail.com>
+
+pkgname=bstatus-git
+pkgver=0.2.0.r0.gdbc872a
+pkgrel=1
+pkgdesc='A simple status line generator'
+arch=('any')
+url=https://github.com/BennyBolton/bstatus
+license=('MIT')
+depends=('nodejs')
+makedepends=('nodejs' 'npm')
+source=('git+https://github.com/BennyBolton/bstatus')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/bstatus"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/bstatus"
+ npm install && npm run build
+}
+
+package() {
+ cd "$srcdir/bstatus"
+ mkdir -p "$pkgdir/usr/bin"
+ cp bstatus.js "$pkgdir/usr/bin/bstatus"
+} \ No newline at end of file