From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/avogadro/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 extra/avogadro/PKGBUILD (limited to 'extra/avogadro/PKGBUILD') diff --git a/extra/avogadro/PKGBUILD b/extra/avogadro/PKGBUILD new file mode 100644 index 000000000..bd8023903 --- /dev/null +++ b/extra/avogadro/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 111981 2011-03-02 21:41:10Z andrea $ +# Maintainer: Andrea Scarpino +# Contributor: Nick B + +pkgname=avogadro +pkgver=1.0.1 +pkgrel=8 +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' 'python2-qt' 'boost-libs' 'glew' 'python2-numpy') +makedepends=('cmake' 'boost') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2" + 'sip-4.11.patch' + 'fix-pycapsule.patch') +md5sums=('0d5c391197101f0aab7be6b59f81e6fd' + 'e78c3f96d0dc702947f75de1c094f580' + '45b0f3be5913575311e92b74a5520966') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/sip-4.11.patch + patch -Np1 -i ${srcdir}/fix-pycapsule.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 + + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/cmake/modules/FindAvogadro.cmake \ + ${pkgdir}/usr/share/cmake-2.8/Modules/FindAvogadro.cmake +} -- cgit v1.2.3-54-g00ecf