summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authororumin2017-09-28 18:00:18 +0900
committerorumin2017-09-28 18:00:18 +0900
commit3df0fbe3139f35356240878cd7cebbc61ae63a28 (patch)
tree361ee3421bf1c1211347e05ac2a60e87d61e9ab4
downloadaur-3df0fbe3139f35356240878cd7cebbc61ae63a28.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD28
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3922f392971
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nodejs-slack-tui
+ pkgdesc = TUI-based Slack client.
+ pkgver = 0.1.2
+ pkgrel = 1
+ url = https://github.com/hikalium/slack-tui#readme
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+ noextract = slack-tui-0.1.2.tgz
+ source = http://registry.npmjs.org/slack-tui/-/slack-tui-0.1.2.tgz
+ sha1sums = 05068168680352056c4ff74b78076bf25f634257
+
+pkgname = nodejs-slack-tui
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..11cecb3bdb9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# maintainer: orumin <dev at orum.in>
+
+_npmname=slack-tui
+_npmver=0.1.2
+pkgname=nodejs-slack-tui # All lowercase
+pkgver=0.1.2
+pkgrel=1
+pkgdesc="TUI-based Slack client."
+arch=(any)
+url="https://github.com/hikalium/slack-tui#readme"
+license=(MIT)
+depends=('nodejs' 'npm' )
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(05068168680352056c4ff74b78076bf25f634257)
+
+package() {
+ cd $srcdir
+ tar xzf $_npmname-$_npmver.tgz
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ install -Dm644 "$srcdir/package/LICENSE" "$pkgdir/usr/share/licenses/slack-tui/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: