updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / neurolab / PKGBUILD
blobe327e7d04208bbc91f4bfbcc8e2c8d4b193bd63a
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=neurolab
4 pkgver=1.2.2
5 pkgrel=1
6 pkgdesc="Neurocognitive Linguistics Lab is an approach to linguistics which uses relational networks to model what the brain actually does when it handles language."
7 arch=(i686 x86_64)
8 url="https://bitbucket.org/kulibali/neurocogling/wiki/Home"
9 license=('BSD')
10 depends=('qt')
11 install="$pkgname.install"
12 source=("https://bitbucket.org/kulibali/neurocogling/get/$pkgver.tar.bz2"
13         "$pkgname.png::http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Brain_Surface_Gyri.SVG/64px-Brain_Surface_Gyri.SVG.png"
14         "$pkgname.desktop" "$pkgname.patch")
15 md5sums=('43304a81589c4b1f4d3777aa148b90de'
16          '069237839c0b9371293127257e99c698'
17          '8057430307dc932460a525ef1d606824'
18          '3873e82be3d48a7808590627a7673880')
20 build() {
21   cd "$srcdir/kulibali-"*/src
23   # build fixes
24   sed -i "s/\(reinterpret_cast.*IdType\)\(.*\);/(\*\1 \*\2);/" \
25     `grep -rl "reinterpret_cast.*IdType" .`
26   sed -i "/IdType/s/\(reinterpret_cast.*<\)\(NeuroItem\)/\1const \2/" \
27     neurogui/subnetwork/subnetworkitem.cpp
29   # add missing glu header
30   sed -i "44a#include <GL/glu.h>" griditems/gridviewer.h
32   qmake neurolab_all.pro
33   make
36 package() {
37   cd "$srcdir/kulibali-"*/src
39   # bin
40   install -Dm755 release/$pkgname "$pkgdir/usr/bin/$pkgname"
42   # libs docs and examples
43   install -d "$pkgdir"/usr/{lib,share/$pkgname/{examples,docs}}
45   cp -a release/{plugins/*,*.so.*} "$pkgdir/usr/lib"
46   install -Dm644 ../doc/manual.pdf "$pkgdir/usr/share/$pkgname/docs"
47   install -Dm644 ../samples/* "$pkgdir/usr/share/$pkgname/examples"
49   # desktop and pixmaps
50   install -Dm644 "$srcdir/$pkgname.desktop" \
51     "$pkgdir/usr/share/applications/$pkgname.desktop"
52   install -Dm644 "$srcdir/$pkgname.png" \
53     "$pkgdir/usr/share/pixmaps/$pkgname.png"
55   # license
56   install -Dm644 ../LICENSE.txt \
57     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
60 # vim:set ts=2 sw=2 et: