summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicola Squartini2016-07-22 18:52:36 +0900
committerNicola Squartini2016-07-22 18:52:36 +0900
commitfc65761a61e5cff26b20664918fc63ea347e18d8 (patch)
tree975551c05732a72ef2ee1f71c9f10cd8f8e0f625
downloadaur-fc65761a61e5cff26b20664918fc63ea347e18d8.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD24
3 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a6ec12b7839
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Fri Jul 22 09:51:55 UTC 2016
+pkgbase = nodejs-ts-node
+ pkgdesc = TypeScript execution environment and REPL for node
+ pkgver = 1.1.0
+ pkgrel = 1
+ url = https://github.com/TypeStrong/ts-node
+ arch = any
+ license = MIT
+ makedepends = npm
+ depends = nodejs
+ options = !emptydirs
+
+pkgname = nodejs-ts-node
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e1b6a078e37
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/nodejs-ts-node-*-any.pkg.tar.xz
+/pkg/
+/src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fec3e1c3a73
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Nicola Squartini <tensor5@gmail.com>
+
+pkgname=nodejs-ts-node
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='TypeScript execution environment and REPL for node'
+arch=('any')
+url='https://github.com/TypeStrong/ts-node'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+options=(!emptydirs)
+
+package() {
+ npm install --user root -g --prefix="${pkgdir}"/usr ts-node@${pkgver}
+
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s ../../../lib/node_modules/ts-node/LICENSE \
+ "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ find "${pkgdir}" -name "package.json" -exec sed -e "s|${pkgdir}||" -i {} \;
+ sed -e "s|${srcdir}|/|" \
+ -i "${pkgdir}"/usr/lib/node_modules/ts-node/package.json
+}