summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authororumin2017-09-28 18:11:24 +0900
committerorumin2017-09-28 18:11:24 +0900
commitb13a58d1c884439b92528362aa531e264b3faa20 (patch)
treec3ef01812e0b2f596a97b87ad2b5941d91f20ad9
parent3df0fbe3139f35356240878cd7cebbc61ae63a28 (diff)
downloadaur-b13a58d1c884439b92528362aa531e264b3faa20.tar.gz
fix shebang
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD15
-rw-r--r--slack-tui_interpreter.patch10
3 files changed, 22 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3922f392971..88114d304e1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
pkgbase = nodejs-slack-tui
pkgdesc = TUI-based Slack client.
pkgver = 0.1.2
- pkgrel = 1
+ pkgrel = 2
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
+ source = slack-tui_interpreter.patch
sha1sums = 05068168680352056c4ff74b78076bf25f634257
+ sha1sums = 829f87eac995b43019a75acbd2c2c86ee670a2f4
pkgname = nodejs-slack-tui
diff --git a/PKGBUILD b/PKGBUILD
index 11cecb3bdb9..7b3fea3868e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,24 +4,27 @@ _npmname=slack-tui
_npmver=0.1.2
pkgname=nodejs-slack-tui # All lowercase
pkgver=0.1.2
-pkgrel=1
+pkgrel=2
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)
+source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz"
+ "slack-tui_interpreter.patch")
+sha1sums=(05068168680352056c4ff74b78076bf25f634257
+ 829f87eac995b43019a75acbd2c2c86ee670a2f4)
package() {
cd $srcdir
- tar xzf $_npmname-$_npmver.tgz
+ patch -p0 < slack-tui_interpreter.patch
+ tar cf slack-tui.tar package
+
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
- npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ npm install -g --prefix "$pkgdir/usr" "$srcdir/slack-tui.tar"
install -Dm644 "$srcdir/package/LICENSE" "$pkgdir/usr/share/licenses/slack-tui/LICENSE"
}
diff --git a/slack-tui_interpreter.patch b/slack-tui_interpreter.patch
new file mode 100644
index 00000000000..0ec5fe30c7e
--- /dev/null
+++ b/slack-tui_interpreter.patch
@@ -0,0 +1,10 @@
+diff -Nur package.orig/index.js package/index.js
+--- package.orig/index.js 2017-09-28 18:06:57.291132100 +0900
++++ package/index.js 2017-09-28 18:07:25.054830498 +0900
+@@ -1,4 +1,5 @@
+-#!/usr/local/bin/node
++#!/usr/bin/env node
++
+ var SlackChannel = (function () {
+ function SlackChannel(id, name) {
+ this.id = id;