summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Cowdery Lack2021-07-30 15:01:05 +1000
committerOscar Cowdery Lack2021-07-30 15:01:05 +1000
commit434c2723a0825f49f50b5b7c1c6ee00afd6d6e30 (patch)
treefef03d2fbc6a876bbac98da6d594e10467538791
parentfb1e31ee5655248a310bd60c288c24e329f66633 (diff)
downloadaur-434c2723a0825f49f50b5b7c1c6ee00afd6d6e30.tar.gz
upgrade to 1.36.14, build from source
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD56
-rwxr-xr-xomnisharp3
3 files changed, 40 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore
index f836695f966..f2809e17f73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
-LICENSE
*.tar.gz
-*.tar.xz
+*.tar.zst
+*.log
pkg
src
diff --git a/PKGBUILD b/PKGBUILD
index 5a7bd2a90e8..c5d79db1c92 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,44 @@
-# Maintainer: sixpindin <sixpindin@gmail.com>
+# Maintainer: oscarcl <oscar.cowderylack@gmail.com>
+# Contributor: sixpindin <sixpindin@gmail.com>
pkgname=omnisharp-roslyn
-pkgver=1.32.19
-pkgrel=2
-pkgdesc=".NET development platform based on on Roslyn workspaces."
+pkgver=1.37.14
+pkgrel=1
+pkgdesc="OmniSharp server (STDIO) based on Roslyn workspaces"
arch=('x86_64')
url="https://github.com/OmniSharp/omnisharp-roslyn"
license=('MIT')
-depends=('mono')
-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")
+depends=('mono' 'mono-msbuild' 'mono-msbuild-sdkresolver')
+source=("https://github.com/OmniSharp/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
+ 'omnisharp')
+sha256sums=('b04a428d92d47af6fd4b70c0d3856e06192629ddd680ab9c0568021bbe15f2ab'
+ '3b17bc4d6b66ead2d78803c089adc00c2b9ab14e9550517ca4de9b230f2248ab')
-package() {
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # /etc/os-release doesn't exist inside the build chroot, use
+ # /usr/lib/os-release instead
+ sed -i 's|/etc/os-release|/usr/lib/os-release|' scripts/platform.cake
+
+ # normally the build sets the version from git, we don't have a git repo so
+ # just override it manually
+ sed -i "s/0.0.1-local/$pkgver/" scripts/common.cake
+ sed -i "s/0.0.1.0/${pkgver%.*}.0.0/" scripts/common.cake
+}
-#binaries
- mkdir -p $pkgdir/opt/$pkgname
- tar -xf $srcdir/$pkgname-$pkgver.tar.gz -C $pkgdir/opt/$pkgname
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./build.sh --target Quick --configuration Release
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/artifacts/publish/OmniSharp.Stdio.Driver/mono"
- #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
+ install -d "$pkgdir/usr/share/$pkgname"
+ install -Dm644 * "$pkgdir/usr/share/$pkgname"
+ rm "$pkgdir/usr/share/$pkgname/license.md"
-#license
- install -D -m644 $srcdir/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "license.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm755 "$srcdir/omnisharp" "$pkgdir/usr/bin/omnisharp"
}
-md5sums=('1400085a5e1503a7239746b982f83f79'
- '19a620e118d664537fb9dac578810f8d')
diff --git a/omnisharp b/omnisharp
new file mode 100755
index 00000000000..f02f465c5ba
--- /dev/null
+++ b/omnisharp
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec mono --assembly-loader=strict /usr/share/omnisharp-roslyn/OmniSharp.exe "$@"