# Contributor: Miguel Useche <migueluseche@skatox.com>
pkgname=upp
pkgver=2008.1
pkgrel=1
arch=('i686')
pkgdesc="Ultimate++ is a C++ cross-platform rapid application development suite."
url="http://www.ultimatepp.org/"
license="BSD"
depends=('gcc' 'libxft' 'atk')
source=(http://switch.dl.sourceforge.net/sourceforge/upp/$pkgname-src-$pkgver.tar.gz upp-fix-makefile.diff uppsrc-ide-fix-makefile.diff GCC.bm)
md5sums=(fd98b01aac28037060e35295c3256b26 871b87915be63ff509a2fea0103a5050 3aa032928cee00fb37ae0bfdd4fc1697 d09f478662a5943ecddc4db09ec79894)

build() {
  cd $startdir/src/uppsrc/ide/
  patch < ../../uppsrc-ide-fix-makefile.diff
  cd $startdir/src/
  patch < upp-fix-makefile.diff
  make || return 1
  make DESTDIR=$startdir/pkg install
  cp GCC.bm $startdir/pkg/usr/share/upp
}

