summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase2020-02-03 10:37:28 +0100
committerSven-Hendrik Haase2020-02-03 10:37:28 +0100
commit61ec5840ec8808ca3df19a60d39744d1ce92e150 (patch)
tree3e5fbfa211ea7340bca9d638b7aa081f22dbfe4c
parent65a6e88eb377c96062007dbc3931d682dd4abf4b (diff)
downloadaur-61ec5840ec8808ca3df19a60d39744d1ce92e150.tar.gz
Prepare update
-rw-r--r--PKGBUILD32
1 files changed, 15 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1000f00fbfc..6d076b39c8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,26 @@
-# Maintainer: Bambang Catur Pamungkas <bambangcaturz@gmail.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: Bambang Catur Pamungkas <bambangcaturz@gmail.com>
-_npmname='@sentry/cli'
pkgname=sentry-cli
-pkgver=1.40.0
+pkgver=1.49.0
pkgrel=1
pkgdesc="A command line utility to work with Sentry"
-arch=('i686' 'x86_64')
+arch=('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=('287d0fc08b871c88dcbf43e87d9a87c615c3d9c6907fbb5c091a642ffefc7e53')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz"::https://github.com/getsentry/sentry-cli/archive/${pkgver}.tar.gz)
+sha256sums=('40638fc4b0b816f166c6f8024f14966593a3323e4cf8b589e7c9d35ae0baa3fa')
+
+build() {
+ cd $pkgname-$pkgver
+ cargo build --release --locked
+}
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'
+ cd $pkgname-$pkgver
+ install -Dm755 target/release/sentry-cli "$pkgdir"/usr/bin/sentry-cli
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et: