updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / falconpl-curl-svn / PKGBUILD
blobb56a1d99a2cc9fadd5ed1138c7499769ea4e18a8
1 # Contributor: shura <shura1991@gmail.com>
3 pkgname=falconpl-curl-svn
4 pkgver=9999
5 pkgrel=1
6 pkgdesc="The cURL lib binding for 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' 'falconpl')
11 provides=('falconpl-curl')
12 replace=('falcon-curl' 'falconpl-curl')
14 _svntrunk=svn://falconpl.org/falcon/modules/curl/trunk
15 _svnmod=falcon-curl
17 build ()
19     cd $srcdir
21     msg "Getting sources"
23     if [[ -e $_svnmod/.svn ]]; then
24         cd $_svnmod && svn up
25     else
26         svn co $_svntrunk --config-dir ./ $_svnmod
27     fi
29     rm -Rf $srcdir/$_svnmod-build
30     cp -R $srcdir/$_svnmod $srcdir/$_svnmod-build
31     cd $srcdir/$_svnmod-build
33     msg "Configuring core package"
34     cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . || return 1
35     msg "Compiling core package"
36     make || return 1
37     msg "Installing core package"
38     make DESTDIR=$pkgdir install || return 1
39     mkdir -p $startdir/pkg/usr/share/licenses/falcon || return 1
40     
41     msg "Cleaning up"
42     rm -Rf $startdir/$_svnmod-build