summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsharkdp2017-04-30 21:12:49 +0200
committersharkdp2017-04-30 21:12:49 +0200
commitaa4fdd5a13819894d64cd1fc86dbce2657e0b7f9 (patch)
treea2392a4120403c117ca8e46363cbd0a7078068ed /PKGBUILD
downloadaur-aa4fdd5a13819894d64cd1fc86dbce2657e0b7f9.tar.gz
Add insect as an AUR package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..63836c5d2b85
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: David Peter <mail@david-peter.de>
+_npmname=insect
+_npmver=4.3.0
+pkgname=insect
+pkgver=4.3.0
+pkgrel=1
+pkgdesc="High precision scientific calculator with support for physical units"
+arch=(any)
+url="https://github.com/sharkdp/insect"
+license=('MIT')
+depends=('nodejs' 'npm' )
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(e01fd5b2853403d338eec4df5e0cf744e9ae4012)
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+}
+
+# vim:set ts=2 sw=2 et: