desktop/avogadro/PKGBUILD

46 lines
1.1 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=avogadro
pkgver=1.0.1
pkgrel=3
pkgdesc="An advanced molecular editor based on Qt"
arch=('i686' 'x86_64')
url="http://avogadro.openmolecules.net/wiki/Main_Page"
license=('GPL2')
depends=('eigen' 'openbabel' 'pyqt' 'boost' 'glew' 'python-numpy')
makedepends=('cmake' 'boost')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'sip-4.11.patch')
md5sums=('0d5c391197101f0aab7be6b59f81e6fd'
'9cf01a9523a0e948b25cfa9598b1fdd3')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np0 -i ${srcdir}/sip-4.11.patch
cd ${srcdir}
mkdir build
cd build
# use the cmake module in system to enable python 2.7 support
rm ../${pkgname}-${pkgver}/cmake/modules/FindPythonLibs.cmake
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}