1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
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."
8 url="https://bitbucket.org/kulibali/neurocogling/wiki/Home"
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')
21 cd "$srcdir/kulibali-"*/src
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
37 cd "$srcdir/kulibali-"*/src
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"
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"
56 install -Dm644 ../LICENSE.txt \
57 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
60 # vim:set ts=2 sw=2 et: