765e304c4b
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'mono'
|
|
pkgname=mono
|
|
version=6.12.0.122
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-system-aot"
|
|
hostmakedepends="perl python3 cmake which"
|
|
makedepends="zlib-devel libX11-devel libgdiplus-devel"
|
|
depends="ca-certificates python3-Pillow"
|
|
short_desc="Free implementation of the .NET platform including runtime and compiler"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="MIT, BSD-3-Clause, GPL-2.0-or-later, LGPL-2.0-or-later, MPL-1.1"
|
|
homepage="https://www.mono-project.com"
|
|
distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.tar.xz"
|
|
checksum=29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23
|
|
lib32disabled=yes
|
|
python_version="3"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;
|
|
arm*) configure_args+=" --disable-boehm" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
# Avoid conflict with chicken's csc and csi compiler
|
|
mv ${DESTDIR}/usr/bin/csc ${DESTDIR}/usr/bin/mono-csc
|
|
mv ${DESTDIR}/usr/bin/csi ${DESTDIR}/usr/bin/mono-csi
|
|
vlicense LICENSE
|
|
}
|
|
|
|
mono-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|