1 # Contributor: Serge Gielkens <gielkens_dot_serge_at_mumeli_dot_org>
3 # Developer tools and API information are not packaged
4 # The dependency.patch assumes Python 2.5
9 pkgdesc="A plant modeling software package"
10 url="http://ngplant.sourceforge.net/"
11 depends=('wxgtk>=2.4' 'lua' 'glew' 'freeglut')
12 makedepends=('python2' 'scons')
13 source=(http://downloads.sourceforge.net/sourceforge/ngplant/${pkgname}-${pkgver}.tar.gz \
16 arch=('i686' 'x86_64')
18 md5sums=('6d48f5e424f0196507abf4ff56335035' \
19 'a4274206bff45fbc520b24ebecb348c0' \
20 '19ca1e427a96bb25e2dc440a9c09f133')
21 install=$pkgname.install
24 cd ${srcdir}/${pkgname}-${pkgver}
27 patch -Np0 -i ../scons.patch || return 1
32 cd ${srcdir}/${pkgname}-${pkgver}
35 install -d ${pkgdir}/usr/bin/
36 install -m755 -t ${pkgdir}/usr/bin/ \
37 ${srcdir}/${pkgname}-${pkgver}/ngplant/ngplant \
38 ${srcdir}/${pkgname}-${pkgver}/ngpshot/ngpshot \
39 ${srcdir}/${pkgname}-${pkgver}/ngpview/ngpview
42 install -d ${pkgdir}/usr/share/pixmaps
43 install -m644 ngplant/images/ngplant.xpm ${pkgdir}/usr/share/pixmaps/${pkgname}.xpm
44 install -d ${pkgdir}/usr/share/applications
45 install -m644 ../../${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
49 install -d ${pkgdir}/usr/share/${pkgname}/plugins/
50 install -m644 -t ${pkgdir}/usr/share/${pkgname}/plugins/ \
51 ${srcdir}/${pkgname}-${pkgver}/plugins/*
54 install -d ${pkgdir}/usr/share/${pkgname}/examples/textures/
55 install -m644 -t ${pkgdir}/usr/share/${pkgname}/examples/ \
56 ${srcdir}/${pkgname}-${pkgver}/samples/*.*
57 install -m644 -t ${pkgdir}/usr/share/${pkgname}/examples/textures/ \
58 ${srcdir}/${pkgname}-${pkgver}/samples/textures/*.*