diff options
author | Johannes Dewender | 2017-05-30 01:43:20 +0200 |
---|---|---|
committer | Johannes Dewender | 2017-05-30 01:43:20 +0200 |
commit | 0f3bea0d933e925f7cb57bbc27ee1fa35a2c00c4 (patch) | |
tree | 3b47d5a116fe3e3737e0269ccaaab221d434747b | |
parent | 3746ee99a6a3f106a082af6991de94d5443cbdd6 (diff) | |
download | aur-0f3bea0d933e925f7cb57bbc27ee1fa35a2c00c4.tar.gz |
fix binary symlinks
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 5 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Sun May 21 17:32:53 UTC 2017 +# Mon May 29 23:43:09 UTC 2017 pkgbase = elasticdump2 pkgdesc = Import and export tools for Elasticsearch < 5 pkgver = 2.4.2 - pkgrel = 1 + pkgrel = 2 url = https://www.npmjs.com/package/elasticdump arch = any license = Apache @@ -4,7 +4,7 @@ pkgname=elasticdump2 _pkgname=elasticdump pkgver=2.4.2 -pkgrel=1 +pkgrel=2 pkgdesc="Import and export tools for Elasticsearch < 5" arch=(any) url="https://www.npmjs.com/package/elasticdump" @@ -20,6 +20,9 @@ package() { rm -r "$pkgdir/usr/etc" mv "$pkgdir/usr/lib/node_modules/$_pkgname" "$pkgdir/usr/lib/node_modules/$pkgname" - mv "$pkgdir/usr/bin/$_pkgname" "$pkgdir/usr/bin/$pkgname" - mv "$pkgdir/usr/bin/multi$_pkgname" "$pkgdir/usr/bin/multi$pkgname" + rm "$pkgdir/usr/bin/$_pkgname" + rm "$pkgdir/usr/bin/multi$_pkgname" + cd "$pkgdir/usr/bin" + ln -s "../lib/node_modules/$pkgname/bin/$_pkgname" $pkgname + ln -s "../lib/node_modules/$pkgname/bin/multi$_pkgname" multi$pkgname } |