From 5cb978c42b6c6444161fa41121ea5f07579404bc Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Aug 2012 00:02:23 +0000 Subject: Mon Aug 6 00:02:23 UTC 2012 --- testing/monodevelop/PKGBUILD | 41 ++++++++++++++++++++++ .../monodevelop-core-addins.pc.in.patch | 8 +++++ testing/monodevelop/monodevelop.install | 20 +++++++++++ 3 files changed, 69 insertions(+) create mode 100644 testing/monodevelop/PKGBUILD create mode 100644 testing/monodevelop/monodevelop-core-addins.pc.in.patch create mode 100644 testing/monodevelop/monodevelop.install (limited to 'testing/monodevelop') diff --git a/testing/monodevelop/PKGBUILD b/testing/monodevelop/PKGBUILD new file mode 100644 index 000000000..1371e34d8 --- /dev/null +++ b/testing/monodevelop/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 164744 2012-08-04 11:23:54Z andyrtr $ +# Maintainer: Daniel Isenmann +# Contributor: Timm Preetz +# Contributor: Giovanni Scafora + +pkgname=monodevelop +pkgver=3.0.3.5 +pkgrel=2 +pkgdesc="An IDE primarily designed for C# and other .NET languages" + +# should probably changed to "any" - no ELF files - OpenSUSE builds it as NOARCH +arch=('i686' 'x86_64') + +url="http://www.monodevelop.com" +license=('GPL') +depends=('mono>=2.10.8' 'mono-addins>=0.6.2' 'gnome-sharp' 'desktop-file-utils' 'hicolor-icon-theme') +options=(!makeflags) +install=monodevelop.install +source=(http://download.mono-project.com/sources/${pkgname}/${pkgname}-${pkgver}.tar.bz2 + monodevelop-core-addins.pc.in.patch) +md5sums=('ca46b77b49266112b63a8f5c451c5565' + '8466d032735130e37d4091a793a7966c') + +build() { + export MONO_SHARED_DIR=$srcdir/src/.wabi + mkdir -p $MONO_SHARED_DIR + + cd $srcdir/$pkgname-$pkgver + # fix location for MonoDevelop.Gettext.dll - breaks gdb build + patch -Np0 -i ${srcdir}/monodevelop-core-addins.pc.in.patch + + ./configure --prefix=/usr --disable-update-mimedb --disable-update-desktopdb + LD_PRELOAD="" make +} + +package() { + cd $srcdir/$pkgname-$pkgver + LD_PRELOAD="" make DESTDIR=$pkgdir install + rm -r $MONO_SHARED_DIR +} + diff --git a/testing/monodevelop/monodevelop-core-addins.pc.in.patch b/testing/monodevelop/monodevelop-core-addins.pc.in.patch new file mode 100644 index 000000000..c1da3bf1f --- /dev/null +++ b/testing/monodevelop/monodevelop-core-addins.pc.in.patch @@ -0,0 +1,8 @@ +--- monodevelop-core-addins.pc.in 2012-07-27 21:33:41.000000000 +0200 ++++ monodevelop-core-addins.pc.in.new 2012-08-04 12:42:36.086516667 +0200 +@@ -6,4 +6,4 @@ + Name: MonoDevelop Core Add-ins + Description: MonoDevelop Core Add-ins + Version: @VERSION@ +-Libs: -r:${libdir}/AddIns/VersionControl/MonoDevelop.VersionControl.dll -r:${libdir}/AddIns/NUnit/MonoDevelop.NUnit.dll -r:${libdir}/AddIns/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.dll -r:${libdir}/AddIns/MonoDevelop.AspNet/MonoDevelop.AspNet.dll -r:${libdir}/AddIns/DisplayBindings/Gettext/MonoDevelop.Gettext.dll -r:${libdir}/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.dll -r:${libdir}/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.Linux.dll -r:${libdir}/AddIns/MonoDevelop.GtkCore/MonoDevelop.GtkCore.dll -r:${libdir}/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.dll -r:${libdir}/AddIns/BackendBindings/MonoDevelop.VBNetBinding.dll -r:${libdir}/AddIns/BackendBindings/MonoDevelop.CBinding.dll -r:${libdir}/AddIns/BackendBindings/MonoDevelop.CSharpBinding.dll -r:${libdir}/AddIns/MonoDevelop.Autotools/MonoDevelop.Autotools.dll -r:${libdir}/AddIns/DisplayBindings/SourceEditor/MonoDevelop.SourceEditor2.dll -r:${libdir}/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.dll -r:${libdir}/AddIns/MonoDevelop.Refactoring/MonoDevelop.Refactoring.dll -r:${libdir}/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft.dll -r:${libdir}/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.dll -r:${libdir}/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugger.Soft.dll ++Libs: -r:${libdir}/AddIns/VersionControl/MonoDevelop.VersionControl.dll -r:${libdir}/AddIns/NUnit/MonoDevelop.NUnit.dll -r:${libdir}/AddIns/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.dll -r:${libdir}/AddIns/MonoDevelop.AspNet/MonoDevelop.AspNet.dll -r:${libdir}/AddIns/DisplayBindings/MonoDevelop.Gettext/MonoDevelop.Gettext.dll -r:${libdir}/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.dll -r:${libdir}/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.Linux.dll -r:${libdir}/AddIns/MonoDevelop.GtkCore/MonoDevelop.GtkCore.dll -r:${libdir}/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.dll -r:${libdir}/AddIns/BackendBindings/MonoDevelop.VBNetBinding.dll -r:${libdir}/AddIns/BackendBindings/MonoDevelop.CBinding.dll -r:${libdir}/AddIns/BackendBindings/MonoDevelop.CSharpBinding.dll -r:${libdir}/AddIns/MonoDevelop.Autotools/MonoDevelop.Autotools.dll -r:${libdir}/AddIns/DisplayBindings/SourceEditor/MonoDevelop.SourceEditor2.dll -r:${libdir}/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.dll -r:${libdir}/AddIns/MonoDevelop.Refactoring/MonoDevelop.Refactoring.dll -r:${libdir}/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft.dll -r:${libdir}/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.dll -r:${libdir}/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugger.Soft.dll diff --git a/testing/monodevelop/monodevelop.install b/testing/monodevelop/monodevelop.install new file mode 100644 index 000000000..070e6202c --- /dev/null +++ b/testing/monodevelop/monodevelop.install @@ -0,0 +1,20 @@ +post_install() { + update-mime-database /usr/share/mime 1> /dev/null + echo "update desktop mime database..." + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + /bin/true +} + +post_remove() { + update-mime-database /usr/share/mime 1> /dev/null + echo "update desktop mime database..." + update-desktop-database -q +} -- cgit v1.2.3-54-g00ecf