desktop/avogadro/PKGBUILD
2013-05-05 08:21:06 +00:00

42 lines
1.0 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dog]org>
pkgname=avogadro
pkgver=1.1.0
pkgrel=2
pkgdesc="An advanced molecular editor based on Qt"
arch=('x86_64')
url="http://avogadro.openmolecules.net/wiki/Main_Page"
license=('GPL2')
depends=('eigen' 'openbabel' 'pyqt' 'boost-libs' 'glew' 'python-numpy')
makedepends=('cmake' 'boost')
categories=('education')
screenshot=('http://avogadro.openmolecules.net/w/images/7/75/Avogadro-unitcell.png')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('f4fbef5ffc69cc312b2316426c36a78d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd ${srcdir}
mkdir -p 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 \
-DQT_MKSPECS_RELATIVE=share/qt/mkspecs
make
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}