mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
pkg(mono-6.12.0): relocate files
This commit is contained in:
parent
7b4e072154
commit
509013f4a0
6 changed files with 43 additions and 0 deletions
19
packages/mono/6.12.0/build.sh
vendored
Executable file
19
packages/mono/6.12.0/build.sh
vendored
Executable 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
3
packages/mono/6.12.0/compile
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
csc $*
|
1
packages/mono/6.12.0/environment
vendored
Normal file
1
packages/mono/6.12.0/environment
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/mono-6.12.0:$PATH
|
6
packages/mono/6.12.0/metadata.json
vendored
Normal file
6
packages/mono/6.12.0/metadata.json
vendored
Normal 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
5
packages/mono/6.12.0/run
vendored
Normal 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
9
packages/mono/6.12.0/test.cs
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public class Test
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.WriteLine("OK");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue