pkg(mono-6.12.0): change to new build system

This commit is contained in:
Thomas Hobson 2021-03-06 01:06:00 +13:00
parent 66fd00e410
commit 51666c2d5a
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
7 changed files with 32 additions and 34 deletions

View File

@ -1,34 +0,0 @@
NAME=csharp-mono
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPENDENCIES=
COMPILED=true
VERSIONS=6.12.0
include common.mk
VERSION_6.12.0_FULL=6.12.0.122
VERSION_FULL=${VERSION_${VERSION}_FULL}
${RUN_FILE}:
echo 'CODE=$${1/cs/exe}' > $@
echo 'shift' >> $@
echo 'mono $$CODE $$*' >> $@
${COMPILE_FILE}:
echo 'csc $$*' > $@
${ENV_FILE}:
echo 'export PATH=$$PWD/bin:$$PATH' > $@
${BIN_DIR}: ${BUILD_DIR}mono-${VERSION_FULL}/
$(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout/)
cd $< && ./configure --prefix ${PREFIX}
$(MAKE) -j64 -C $<
DESTDIR=${TMP_DIR} $(MAKE) -C $< install
mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -r ${TMP_DIR}
${BUILD_DIR}mono-${VERSION_FULL}.tar.xz:
curl "https://download.mono-project.com/sources/mono/mono-${VERSION_FULL}.tar.xz" -o $@

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

@ -0,0 +1,16 @@
#!/bin/bash
mkdir -p build/tmp 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 /piston/packages/mono/6.12.0/mono-6.12.0
make
DESTDIR=build/tmp make install
mv build/tmp/piston/packages/mono/6.12.0/mono-6.12.0 ../../output

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:$PATH

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

@ -0,0 +1,7 @@
{
"language": "mono",
"version": "6.12.0",
"author": "Thomas Hobson <thomas@hexf.me>",
"dependencies": {},
"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 $*