summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..454ccdd981f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = sentry-cli
+ pkgdesc = A command line utility to work with Sentry
+ pkgver = 1.37.1
+ pkgrel = 1
+ url = https://docs.sentry.io/cli/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = nodejs
+ depends = npm
+ noextract = @sentry/cli-1.37.1.tgz
+ source = http://registry.npmjs.org/@sentry/cli/-/@sentry/cli-1.37.1.tgz
+ sha256sums = 72d359529b7cb5132fd7167be26b0b6095331121084c615b7501c61f76038e40
+
+pkgname = sentry-cli
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..72e00bc3f70
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Bambang Catur Pamungkas <bambangcaturz@gmail.com>
+
+_npmname='@sentry/cli'
+pkgname=sentry-cli
+pkgver=1.37.1
+pkgrel=1
+pkgdesc="A command line utility to work with Sentry"
+arch=('i686' 'x86_64')
+url="https://docs.sentry.io/cli/"
+license=('BSD')
+depends=('nodejs' 'npm')
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('72d359529b7cb5132fd7167be26b0b6095331121084c615b7501c61f76038e40')
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ # remove reference to $pkgdir
+ # see: https://github.com/npm/npm/issues/10393
+ find . -name "package.json" -type f | xargs sed -i -e '/_where/d'
+}
+
+# vim:set ts=2 sw=2 et: