pkg(mono-6.12.0): relocate files

This commit is contained in:
Thomas Hobson 2021-03-13 19:53:00 +13:00
parent 7b4e072154
commit 509013f4a0
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
6 changed files with 43 additions and 0 deletions

19
packages/mono/6.12.0/build.sh vendored Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build/mono
cd build
curl "https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz" -o mono.tar.xz
tar xf mono.tar.xz --strip-components=1 -C mono
cd mono
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ../../
rm -rf build

3
packages/mono/6.12.0/compile vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
csc $*

1
packages/mono/6.12.0/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/mono-6.12.0:$PATH

6
packages/mono/6.12.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "mono",
"version": "6.12.0",
"author": "Thomas Hobson <thomas@hexf.me>",
"aliases": ["csharp", "cs"]
}

5
packages/mono/6.12.0/run vendored Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
CODE=${1/cs/exe}
shift
mono $CODE $*

9
packages/mono/6.12.0/test.cs vendored Normal file
View File

@ -0,0 +1,9 @@
using System;
public class Test
{
public static void Main(string[] args)
{
Console.WriteLine("OK");
}
}