updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ngplant / PKGBUILD
blobda63540d6331a82d8aa4b43ec6aa461fd3fb5212
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
6 pkgname=ngplant
7 pkgver=0.9.8
8 pkgrel=1
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 \
14         scons.patch \
15         ${pkgname}.desktop) 
16 arch=('i686' 'x86_64')
17 license=('GPL' 'BSD')
18 md5sums=('6d48f5e424f0196507abf4ff56335035' \
19         'a4274206bff45fbc520b24ebecb348c0' \
20         '19ca1e427a96bb25e2dc440a9c09f133')
21 install=$pkgname.install
23 build() {
24   cd ${srcdir}/${pkgname}-${pkgver}
26 # Patch and build
27   patch -Np0 -i ../scons.patch || return 1
28   scons || return 1
31 package() {
32   cd ${srcdir}/${pkgname}-${pkgver}
34 # Install programs
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
41 # Install menu
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
48 # Install plugins
49   install -d ${pkgdir}/usr/share/${pkgname}/plugins/
50   install -m644 -t ${pkgdir}/usr/share/${pkgname}/plugins/ \
51         ${srcdir}/${pkgname}-${pkgver}/plugins/*
53 # Install examples
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/*.*