1 # Contributor: shura <shura1991@gmail.com>
6 pkgdesc="Falcon Programming Language"
7 license=('custom:"GPLv2 or Falcon Programming Language License"')
8 url="http://www.falconpl.org"
10 makedepends=('cmake' 'subversion')
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
25 if [[ -e $_core_svnmod/.svn ]]; then
26 cd $_core_svnmod && svn up
28 svn co $_core_svntrunk --config-dir ./ $_core_svnmod
31 if [[ -e $_feathers_svnmod/.svn ]]; then
32 cd $_feathers_svnmod && svn up
34 svn co $_feathers_svntrunk --config-dir ./ $_core_svnmod
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"
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"
58 msg "Installing feathers package"
59 make DESTDIR=$pkgdir install || return 1
62 rm -Rf $startdir/$_core_svnmod-build $startdir/$_feathers_svnmod-build