1 # $Id: PKGBUILD 100347 2010-11-22 23:25:14Z andrea $
2 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
8 pkgdesc="An advanced molecular editor based on Qt"
10 url="http://avogadro.openmolecules.net/wiki/Main_Page"
12 depends=('eigen' 'openbabel' 'python2-qt' 'boost-libs' 'glew' 'python-numpy')
13 makedepends=('cmake' 'boost' 'git')
14 conflicts=('avogadro')
16 source=('sip-4.11.patch' 'fix-pycapsule.patch')
17 md5sums=('e78c3f96d0dc702947f75de1c094f580'
18 '45b0f3be5913575311e92b74a5520966')
20 _gitroot="git://avogadro.git.sourceforge.net/gitroot/avogadro/avogadro"
27 if [ -d "$srcdir/$_gitname" ] ; then
28 cd "$_gitname" && git pull origin
33 cd "${srcdir}/$_gitname"
34 patch -Np1 -i ${srcdir}/sip-4.11.patch || true
35 patch -Np1 -i ${srcdir}/fix-pycapsule.patch || true
37 mkdir -p "${srcdir}/${_gitname}-build"
38 cd "${srcdir}/${_gitname}-build"
41 cmake "../${_gitname}" \
42 -DCMAKE_BUILD_TYPE=Release \
43 -DCMAKE_INSTALL_PREFIX=/usr
48 cd "${srcdir}/${_gitname}-build"
49 make DESTDIR="${pkgdir}" install