summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef84bc9cb6c8136c9f0408460cfc298c45ada5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: shimi <shimi.chen@gmail.com>
# Contributor: Marios Abatis <marios.archlinux@gmail.com>
pkgname=gnome-chemistry-utils
pkgver=0.14.17
_majorver=$(echo ${pkgver}|cut -c1-4)
pkgrel=3
pkgdesc="Gnome Chemistry Utilities (gcu). Includes gchempaint, a tool to draw molecules."
arch=('i686' 'x86_64')
url="http://www.nongnu.org/gchemutils/"
license=('GPL')

provides=('gchempaint' 'gchemcalc' 'gcrystal' 'gchem3d' 'gchemtable' 'gspectrum')
conflicts=('gnome-chemistry-utils-devel')
depends=('bodr' 'libglade' 'goffice>=0.10.0' 'gtkglext' 'openbabel' 'hicolor-icon-theme' 'dconf' 'chemical-mime-data')
	##Already fulfilled dependencies:
	#gconf required by goffice
	#libgsf required by goffice
	#cairo required by gtk3 required by goffice
	#shared-mime-info required by gtk3 required by goffice
makedepends=('pkgconfig' 'intltool' 'gettext' 'gnome-doc-utils' 'boost' 'desktop-file-utils')
optdepends=('yelp: Viewing help manuals' \
	    'gnumeric>1.12.0: gnumeric plugin'\
	    'gnome-doc-utils')
source=(http://download.savannah.gnu.org/releases/gchemutils/${_majorver}/${pkgname}-${pkgver}.tar.bz2 gnumeric-ftbfs.patch openbabel3.patch)
options=(!libtool)
install=gnome-chemistry-utils.install
md5sums=('961c9f1a5760abeb62204a8f5a1a9802' 'SKIP' 'SKIP')

prepare() {
        cd $pkgname-$pkgver
        patch --forward --strip=1 --input="${srcdir}/gnumeric-ftbfs.patch"
        patch --forward --strip=1 --input="${srcdir}/openbabel3.patch"
    }

build() {

	cd ${srcdir}/${pkgname}-${pkgver}
	autoreconf -f -i
	export CPATH=/usr/include/openbabel3
	./configure	--prefix=/usr \
				--sysconfdir=/etc \
				--libexecdir=/usr/lib/${pkgname} \
				--disable-update-databases \
				--disable-schemas-compile
	make || return 1
}

package() {

	cd ${srcdir}/${pkgname}-${pkgver}

	make DESTDIR=${pkgdir} install || return 1
}