# Tanım: mono eklentileri
# URL: http://www.mono-project.com/Mono.Addins
# Paketçi: milisarge
# Gerekler: gtk-sharp2 gtk-sharp3 mono 
# Grup: geliştirme

isim=mono-addins
surum=1.3.3
devir=1
kaynak=(https://github.com/mono/mono-addins/archive/mono-addins-$surum.tar.gz
		https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v0.03/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip)

derle() {
  local msbuild="$SRC/msbuild/MSBuild.exe"
  cd ${isim}-${isim}-${surum}
  ./autogen.sh --prefix=/usr --enable-gui
  make
  mono "$msbuild" Mono.Addins/Mono.Addins.csproj /p:WarningLevel=0;Configuration=Release
  mono "$msbuild" Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj /p:WarningLevel=0;Configuration=Release
  mono "$msbuild" Mono.Addins.Gui/Mono.Addins.Gui.csproj /p:WarningLevel=0;Configuration=Release
  mono "$msbuild" Mono.Addins.GuiGtk3/Mono.Addins.GuiGtk3.csproj /p:WarningLevel=0;Configuration=Release
  mono "$msbuild" Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj /p:WarningLevel=0;Configuration=Release
  mono "$msbuild" Mono.Addins.Setup/Mono.Addins.Setup.csproj /p:WarningLevel=0;Configuration=Release
  cd $SRC/${isim}-${isim}-${surum}
  make DESTDIR=$PKG install
  install -Dm644 COPYING ${PKG}/usr/share/licenses/${isim}/COPYING
}
