blob: d5933d556c217831966f65d3355f0f14632e172f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Aikawa Yataro <aikawayataro at protonmail dot com>
# Contributor: Vaughan <vaughanm1@protonmail.com>
# Contributor: tytan652 <tytan652 at tytanium dot xyz>
# Contributor: Jun Bo Bi <jambonmcyeah@gmail.com>
pkgname=netcoredbg
_pkgver=3.1.2-1054
pkgver="${_pkgver//-/_}"
pkgrel=1
pkgdesc='Debugger for .NET Core runtime'
url='https://github.com/Samsung/netcoredbg'
license=('MIT')
arch=('x86_64')
depends=('dotnet-runtime-8.0')
makedepends=('cmake' 'clang' 'dotnet-sdk-8.0')
# keep synced with extra/dotnet-core
# see Components.md of dotnet/dotnet
_runtime_tag=81cabf2857a01351e5ab578947c7403a5b128ad1
source=("$pkgname-$_pkgver.tar.gz::https://github.com/Samsung/netcoredbg/archive/refs/tags/$_pkgver.tar.gz"
"dotnet_runtime_${_runtime_tag:0:7}.tar.gz::https://github.com/dotnet/runtime/archive/$_runtime_tag.tar.gz")
sha256sums=('2699f6dd0275c5943339183fc5c7e5c0cdfe77a23388a9fdab3f2c6929ff40a7'
'bbd5b1651bfc4c75b67ef23b71af58f6441401185f22233daefd35cc9ec72cfd')
build() {
cmake -B build -S "$pkgname-$_pkgver" \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_TYPE=None \
-DDOTNET_DIR=/usr/share/dotnet \
-DCORECLR_DIR="$(realpath "runtime-$_runtime_tag")/src/coreclr" \
-DCMAKE_INSTALL_PREFIX=/
cmake --build build
}
package() {
DESTDIR="$pkgdir/opt/netcoredbg" cmake --install build
install -d "$pkgdir/usr/bin"
ln -s /opt/netcoredbg/netcoredbg "$pkgdir/usr/bin"
install -Dm644 "$pkgname-$_pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}
|