1 # Maintainer: Jan Dolinar <dolik.rce@gmail.com>
6 pkgdesc="Modern IDE designed for developping large U++/C++ applications"
8 url="http://www.ultimatepp.org"
12 makedepends=('subversion')
17 options=(!makeflags emptydirs)
19 source=('license.txt')
22 _svntrunk="http://upp-mirror.googlecode.com/svn/trunk/"
23 # many users have already working copy of U++ on their system, so they
24 # can use it for building (e.g. to save network traffic or to speed up
25 # things) by setting $UPPSVN environment variable
26 if [ "x$UPPSVN" != "x" ]
30 _svnmod="$srcdir/uppsvn"
36 for n in uppsrc uppbox/lpbuild
38 if [ -d $_svnmod/$n/.svn ]; then
39 (cd $_svnmod/$n && svn up -r $pkgver)
41 svn co $_svntrunk$n/ --config-dir ./ -r $pkgver $_svnmod/$n
44 msg2 "SVN checkout done (or server timeout)"
45 #prepare copy for building
46 rm -rf "$srcdir/build"
48 cp -a "$_svnmod/uppsrc" "$srcdir/build/"
50 if [ -d "$srcdir/_out" ]
52 _fast="FAST=N" # to be safe if no header files changed
57 echo "#define IDE_VERSION \"$pkgver-Arch\"" > uppsrc/ide/version.h
58 msg2 "Building $pkgname..."
59 make -f "$_svnmod/uppbox/lpbuild/Makefile" PKG=ide FLAGS="GCC GUI" BINPREFIX="$srcdir/_out/bin/the" BINEXT="" NESTS="uppsrc" OBJDIR="$srcdir/_out" $_fast
61 rm -rf "$srcdir/build"
66 mkdir -p "$pkgdir/usr/bin"
67 cp "$srcdir/_out/bin/theide" "$pkgdir/usr/bin/theide"
69 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
70 cp "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname"
72 mkdir -p "$pkgdir/usr/share/man/man1"
73 cp "$_svnmod/uppbox/lpbuild/theide.1" "$pkgdir/usr/share/man/man1/theide.1"
75 mkdir -p "$pkgdir/usr/share/applications"
76 cp "$_svnmod/uppbox/lpbuild/theide.desktop" "$pkgdir/usr/share/applications"
78 mkdir -p "$pkgdir/usr/share/pixmaps"
79 cp "$_svnmod/uppsrc/ide/theide-48.png" "$pkgdir/usr/share/pixmaps/theide.png"
81 find "$pkgdir/usr/" -type f -exec chown root:root {} \; -exec chmod 644 {} \;
82 chmod a+x "$pkgdir/usr/bin/theide"
86 md5sums=('b214709f096e4f50d61f50988359241e')