summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c54b6a2cea854127f67ae6bc62d466d289bc277a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
pkgname=globs-svn
pkgver=50
pkgrel=2
pkgdesc="GL Open Benchmark Suite"
arch=('any')
url="http://globs.sourceforge.net"
license=('GPL')
depends=('pygtk')
makedepends=('subversion' 'scons' 'gettext')
optdepends=('python-matplotlib')
provides=('globs')

_svntrunk=https://globs.svn.sourceforge.net/svnroot/globs/globs/trunk
_svnmod=globs

build() {
  cd $srcdir

  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_svnmod-build"
  cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  cd "$srcdir/$_svnmod-build"

  # Make program
  scons install root=$pkgdir prefix=/usr
  python2 patchdir.py prefix=/usr
  python2 setup.py install --root=$pkgdir --prefix=/usr
}