summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
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