updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / falconpl-svn / PKGBUILD
blobf5dc72d155673c4e9198a51eb375d06184ec068c
1 # Contributor: shura <shura1991@gmail.com>
3 pkgname=falconpl-svn
4 pkgver=9999
5 pkgrel=1
6 pkgdesc="Falcon Programming Language"
7 license=('custom:"GPLv2 or Falcon Programming Language License"')
8 url="http://www.falconpl.org"
9 arch=('i686' 'x86_64')
10 makedepends=('cmake' 'subversion')
11 provides=('falconpl')
12 replace=('falcon' 'falconpl')
14 _core_svntrunk=svn://falconpl.org/falcon/core/trunk
15 _core_svnmod=falcon-core
16 _feathers_svntrunk=svn://falconpl.org/falcon/modules/feathers/trunk
17 _feathers_svnmod=falcon-feathers
19 build ()
21     cd $srcdir
23     msg "Getting sources"
25     if [[ -e $_core_svnmod/.svn ]]; then
26         cd $_core_svnmod && svn up
27     else
28         svn co $_core_svntrunk --config-dir ./ $_core_svnmod
29     fi
31     if [[ -e $_feathers_svnmod/.svn ]]; then
32         cd $_feathers_svnmod && svn up
33     else
34         svn co $_feathers_svntrunk --config-dir ./ $_core_svnmod
35     fi
36     
37     rm -Rf $srcdir/$_core_svnmod-build
38     cp -R $srcdir/$_core_svnmod $srcdir/$_core_svnmod-build
39     cd $srcdir/$_core_svnmod-build
41     msg "Configuring core package"
42     cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . || return 1
43     msg "Compiling core package"
44     make || return 1
45     msg "Installing core package"
46     make DESTDIR=$pkgdir install || return 1
47     mkdir -p $startdir/pkg/usr/share/licenses/falcon || return 1
48     install -Dm664 LICENSE $startdir/pkg/usr/share/licenses/falcon/falcon/LICENSE || return 1
50     rm -Rf $srcdir/$_feathers_svnmod-build
51     cp -R $srcdir/$_feathers_svnmod $srcdir/$_feathers_svnmod-build
52     cd $srcdir/$_feathers_svnmod-build
54     msg "Configuring feathers package"
55     cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . || return 1
56     msg "Compiling feathers package"
57     make || return 1
58     msg "Installing feathers package"
59     make DESTDIR=$pkgdir install || return 1
61     msg "Cleaning-up"
62     rm -Rf $startdir/$_core_svnmod-build $startdir/$_feathers_svnmod-build