updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / falcon-git / PKGBUILD
blobc70eb9fce4a4caaae23621cacc5e75e5cc5c1b0d
1 # Maintainer: Maik Beckmann <beckmann dot maik at googlemail dot com>
2 pkgname=falcon-git
3 pkgver=20101009
4 pkgrel=2
5 pkgdesc="A truly multi-paradigm scripting language with good embed- and extensibility."
6 url="http://www.falconpl.org"
7 arch=('i686' 'x86_64')
8 license=('custom:GPL or FPLL')
9 depends=()
10 makedepends=('git' 'cmake')
11 optdepends=()
12 provides=('falcon' 'falcon-feathers')
13 install=$pkgname.install
14 source=()
15 md5sums=()
18 _gitroot="http://git.falconpl.org/falcon.git"
19 _gitname="falcon"
21 build() {
22   cd $srcdir
24   if [ -d ${_gitname} ] ; then
25     cd $_gitname && git pull origin
26     msg 'The local files are updated.'
27   else
28     msg 'getting sources...'
29     git clone $_gitroot $_gitname
30   fi
32   cd $srcdir
33   rm -rf build
34   mkdir build && cd build
36   # activates core, feathers and faldoc ( which is in apps/ )
37   cmake \
38     -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
39     -DFALCON_WITH_EDITLINE=on -DFALCON_WITH_INTERNAL_EDITLINE=off -DFALCON_WITH_GPL_READLINE=on \
40     -DFALCON_BUILD_FEATHERS=on \
41     -DFALCON_BUILD_APPS=on \
42     -DFALCON_BUILD_NATMODS=off \
43     -DFALCON_BUILD_FWKS=off \
44     $srcdir/$_gitname
46   make
47   #
48   # docs are optional, thus these targets have to be built explicitly
49   make core_module_docs
50   make feathers_module_docs
51   #
52   # and finally..
53   make DESTDIR=$pkgdir install
56   # FPLLv1_1 License
57   install -D -m644 $srcdir/falcon/LICENSE  $pkgdir/usr/share/licenses/$pkgname/LICENSE