diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-26 23:52:26 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-26 23:52:26 -0500 |
commit | 360e56ec622617a2b121c7ec51e3381ad89f0eab (patch) | |
tree | e74250415c5e21080779befbb7898bd151039d63 /pcr/upp-svn/PKGBUILD | |
parent | 34b4025bc7b0c6d8d47988decd140df38b1d98ac (diff) | |
parent | b1c14cd929ca53e06945a5cda3965dc6fcd9d6b7 (diff) | |
download | abslibre-360e56ec622617a2b121c7ec51e3381ad89f0eab.tar.gz abslibre-360e56ec622617a2b121c7ec51e3381ad89f0eab.tar.bz2 abslibre-360e56ec622617a2b121c7ec51e3381ad89f0eab.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/upp-svn/PKGBUILD')
-rw-r--r-- | pcr/upp-svn/PKGBUILD | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/pcr/upp-svn/PKGBUILD b/pcr/upp-svn/PKGBUILD new file mode 100644 index 000000000..1a5a50d4b --- /dev/null +++ b/pcr/upp-svn/PKGBUILD @@ -0,0 +1,67 @@ +# Contributor: Jan Dolinar <dolik.rce@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=upp-svn +pkgver=5554 +pkgrel=1 +pkgdesc="Radical and innovative multiplatform C++ framework (known as U++)" +arch=('any') +url="http://www.ultimatepp.org" +license=('BSD') +groups=() +depends=('gcc-libs' 'libpng' 'libxft' 'theide') +makedepends=('subversion') +optdepends=('libnotify: Enables compiling gtk-styled apps') +provides=('upp') +conflicts=('upp') +replaces=() +backup=() +options=(emptydirs !strip) +install= +source=('GCC.bm' 'license.txt') +noextract=() + +_svntrunk="http://upp-mirror.googlecode.com/svn/trunk/" +# many users have already working copy of U++ on their system, so they +# can use it for building (e.g. to save network traffic or to speed up +# things) by setting $UPPSVN environment variable +if [ "x$UPPSVN" != "x" ] +then + _svnmod=$UPPSVN +else + _svnmod="$srcdir/uppsvn" +fi + +build() { + cd "$srcdir" + #get sources + msg "Downloading sources from svn..." + for n in bazaar reference examples tutorial uppsrc + do + msg2 "$n" + if [ -d $_svnmod/.svn ]; then + (cd $_svnmod/$n && svn up -r $pkgver) + else + svn co $_svntrunk$n/ --config-dir ./ -r $pkgver $_svnmod/$n + fi + done + msg "SVN checkout done (or server timeout)" +} + +package() { + #copy source files + mkdir -p "$pkgdir/usr/share/upp" + msg2 "Copying the source codes..." + cp -r "$_svnmod/"{bazaar,examples,reference,tutorial,uppsrc} "$pkgdir/usr/share/upp/" + echo "#define IDE_VERSION \"$pkgver-Arch-$(uname -m)\"" > "$pkgdir/usr/share/upp/uppsrc/ide/version.h" + msg2 "Removing the .svn directories..." + find "$pkgdir/" -type d -name ".svn" -exec rm -rf {} \; -prune + #license + mkdir -p "$pkgdir/usr/share/licenses/upp-svn" + cp "$srcdir/license.txt" "$pkgdir/usr/share/licenses/upp-svn" + #build method + cp "$srcdir/GCC.bm" "$pkgdir/usr/share/upp" + #fix permissions + msg2 "Setting permissions..." + find "$pkgdir/usr/" -type f -exec chown root:root {} \; -exec chmod 644 {} \; +} |