updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / upp-svn / PKGBUILD
blobd86c75d4de623333bac5611a1cd8a8a9205c78c0
1 # Maintainer: Jan Dolinar <dolik.rce@gmail.com>
3 pkgname=upp-svn
4 pkgver=4453
5 pkgrel=1
6 pkgdesc="Radical and innovative multiplatform C++ framework (known as U++)"
7 arch=('any')
8 url="http://www.ultimatepp.org"
9 license=('BSD')
10 groups=()
11 depends=('gcc-libs' 'libpng' 'libxft' 'theide')
12 makedepends=('subversion')
13 optdepends=('libnotify: Enables compiling gtk-styled apps')
14 provides=('upp')
15 conflicts=('upp')
16 replaces=()
17 backup=()
18 options=(emptydirs !strip)
19 install=
20 source=('GCC.bm' 'license.txt')
21 noextract=()
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" ]
28 then
29   _svnmod=$UPPSVN
30 else
31   _svnmod="$srcdir/uppsvn"
34 build() {
35   cd "$srcdir"
36   #get sources
37   msg "Downloading sources from svn..."
38   for n in bazaar reference examples tutorial uppsrc
39   do
40     msg2 "$n"
41     if [ -d $_svnmod/$n/.svn ]; then
42       (cd $_svnmod/$n && svn up -r $pkgver)
43     else
44       svn co $_svntrunk$n/ --config-dir ./ -r $pkgver $_svnmod/$n
45     fi
46   done
47   msg "SVN checkout done (or server timeout)"
50 package() {
51   #copy source files
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
58   #license
59   mkdir -p "$pkgdir/usr/share/licenses/upp-svn"
60   cp "$srcdir/license.txt" "$pkgdir/usr/share/licenses/upp-svn"
61   #build method
62   cp "$srcdir/GCC.bm" "$pkgdir/usr/share/upp"
63   #fix permissions
64   msg2 "Setting permissions..."
65   find "$pkgdir/usr/" -type f -exec chown root:root {} \; -exec chmod 644 {} \;
69 md5sums=('4a057aeaa906c8486cf463558b9a7d5a'
70          'b214709f096e4f50d61f50988359241e')