1 #Contributor: Anselmo L. S. Melo <anselmolsm @ gmail.com>
7 url="https://github.com/hugopl/Iceberg"
10 arch=('i686' 'x86_64')
13 makedepends=('git' 'cmake' 'automoc4' 'icecream1')
16 _gitroot='git://github.com/hugopl/Iceberg.git'
18 _buildir=${_gitname}-build
23 msg "Starting git clone..."
25 if [ -d ${_gitname} ]; then
26 cd ${_gitname} && git pull origin
32 msg 'GIT checkout done or server timeout.'
34 if [ -d ${_buildir} ]; then
35 msg 'Cleaning previous build...'
39 git clone ${_gitname} ${_buildir}
42 msg 'Generating necessary files...'
44 mkdir -p $pkgdir/{opt/iceberg/bin,usr/bin}
45 export PKG_CONFIG_PATH=/opt/icecream/lib/pkgconfig/:$PKG_CONFIG_PATH
46 cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/opt/iceberg ${_srcdir} || return 1
48 make install || return 1
49 ln -s /opt/iceberg/bin/iceberg $pkgdir/usr/bin/iceberg