contrib/mono/Pkgfile

29 lines
863 B
Plaintext
Raw Normal View History

2019-08-04 16:15:55 +02:00
# Description: Cross platform, open source .NET framework
# URL: https://www.mono-project.com
2019-08-04 16:15:55 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Packager: poq <jbloomfield at live dot com>
# Depends on: cmake python3 zlib
2019-08-04 16:15:55 +02:00
name=mono
2020-05-17 03:55:37 +02:00
version=6.8.0.123
2019-12-20 21:58:16 +01:00
release=1
source=(https://download.mono-project.com/sources/$name/$name-$version.tar.xz)
2019-12-20 21:58:16 +01:00
2019-08-04 16:15:55 +02:00
build() {
cd $name-$version
2019-09-27 19:30:20 +02:00
[[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
2019-08-04 16:15:55 +02:00
./configure --prefix=/usr \
--mandir=/usr/share/man \
2020-05-17 03:55:37 +02:00
--enable-ninja \
2019-08-04 16:15:55 +02:00
--with-mcs-docs=no \
--disable-crash-reporting \
--disable-nls
2020-05-17 03:55:37 +02:00
sed -e 's/python/python3/g' -i mono/mini/Makefile*
PYTHON=/usr/bin/python3 make
2020-01-21 08:12:26 +01:00
make DESTDIR=$PKG install
2019-08-04 16:15:55 +02:00
rm -fr $PKG/usr/share/locale
find $PKG \( -iname "*README*" \
-o -iname "*la" \)\
-delete
2019-08-04 16:15:55 +02:00
}