summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsixpindin2017-07-26 22:43:56 +0100
committersixpindin2017-07-26 23:45:56 +0100
commitfd33fe91086fb0d8d4b93ff07920c8c98e9fd33f (patch)
tree2fd6a8dc811cea277214b6347b6d8e64b120c93c
parent5b5477c79f1f582051737511cacb3a1d03f0512a (diff)
downloadaur-fd33fe91086fb0d8d4b93ff07920c8c98e9fd33f.tar.gz
Fix file permissions, fix issue with System.Runtime.InteropServices.RuntimeInformation.dll
-rw-r--r--PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ac73bb668eb..83a11a7e985 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: sixpindin <sixpindin@gmail.com>
pkgname=omnisharp-roslyn
pkgver=1.22.0
-pkgrel=1
+pkgrel=2
pkgdesc=".NET development platform based on on Roslyn workspaces."
arch=('x86_64')
url="https://github.com/OmniSharp/omnisharp-roslyn"
@@ -11,15 +11,23 @@ noextract=('$pkgname-$pkgver.tar.gz')
source=("$pkgname-$pkgver.tar.gz::https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v$pkgver/omnisharp-mono.tar.gz"
"LICENSE::https://raw.githubusercontent.com/OmniSharp/omnisharp-roslyn/master/license.md")
-
-
package() {
#binaries
mkdir -p $pkgdir/opt/$pkgname
tar -xf $srcdir/$pkgname-$pkgver.tar.gz -C $pkgdir/opt/$pkgname
+
+ #setup permissions
+ chown -R root:root $pkgdir/opt/$pkgname
+ find $pkgdir/opt -type f | xargs chmod 644
+ find $pkgdir/opt -type d | xargs chmod 755
+ chmod 755 $pkgdir/opt/$pkgname/OmniSharp.exe
+
+ #https://github.com/OmniSharp/omnisharp-roslyn/issues/600
+ rm $pkgdir/opt/$pkgname/System.Runtime.InteropServices.RuntimeInformation.dll
+
#license
- install -D -m644 $srcdir/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 $srcdir/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums=('32afe48e39df8feb3ba3da3a2a954445'
'19a620e118d664537fb9dac578810f8d')