void-packages/srcpkgs/gtk-sharp2/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

31 lines
984 B
Bash

# Template file for 'gtk-sharp2'
pkgname=gtk-sharp2
version=2.12.45
revision=2
wrksrc="gtk-sharp-${version}"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config automake libtool mono"
makedepends="mono-devel gtk+-devel libglade-devel"
maintainer="John <me@johnnynator.dev>"
short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
license="LGPL-2.1-only"
homepage="https://www.mono-project.com/docs/gui/gtksharp/"
distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
patch_args=-Np0
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
_have_mdoc="no"
elif [[ $XBPS_TARGET_MACHINE == ppc* ]]; then
_have_mdoc="no"
fi
pre_configure() {
# mdoc is not shipped on ppc64le and all BE because it needs roslyn
if [ "$_have_mdoc" = "no" ]; then
sed "s/enable_monodoc=yes/enable_monodoc=no/" -i configure.in
fi
autoreconf -i
}