1 # Maintainer: Jan Dolinar <dolik.rce@gmail.com>
6 pkgdesc="Radical and innovative multiplatform C++ framework (known as U++)"
8 url="http://www.ultimatepp.org"
11 depends=('gcc-libs' 'libpng' 'libxft' 'theide')
12 makedepends=('subversion')
13 optdepends=('libnotify: Enables compiling gtk-styled apps')
18 options=(emptydirs !strip)
20 source=('GCC.bm' 'license.txt')
23 _svntrunk="http://upp-mirror.googlecode.com/svn/trunk/"
24 # many users have already working copy of U++ on their system, so they
25 # can use it for building (e.g. to save network traffic or to speed up
26 # things) by setting $UPPSVN environment variable
27 if [ "x$UPPSVN" != "x" ]
31 _svnmod="$srcdir/uppsvn"
37 msg "Downloading sources from svn..."
38 for n in bazaar reference examples tutorial uppsrc
41 if [ -d $_svnmod/$n/.svn ]; then
42 (cd $_svnmod/$n && svn up -r $pkgver)
44 svn co $_svntrunk$n/ --config-dir ./ -r $pkgver $_svnmod/$n
47 msg "SVN checkout done (or server timeout)"
52 mkdir -p "$pkgdir/usr/share/upp"
53 msg2 "Copying the source codes..."
54 cp -r "$_svnmod/"{bazaar,examples,reference,tutorial,uppsrc} "$pkgdir/usr/share/upp/"
55 echo "#define IDE_VERSION \"$pkgver-Arch\"" > "$pkgdir/usr/share/upp/uppsrc/ide/version.h"
56 msg2 "Removing the .svn directories..."
57 find "$pkgdir/" -type d -name ".svn" -exec rm -rf {} \; -prune
59 mkdir -p "$pkgdir/usr/share/licenses/upp-svn"
60 cp "$srcdir/license.txt" "$pkgdir/usr/share/licenses/upp-svn"
62 cp "$srcdir/GCC.bm" "$pkgdir/usr/share/upp"
64 msg2 "Setting permissions..."
65 find "$pkgdir/usr/" -type f -exec chown root:root {} \; -exec chmod 644 {} \;
69 md5sums=('4a057aeaa906c8486cf463558b9a7d5a'
70 'b214709f096e4f50d61f50988359241e')