1 # Maintainer: masutu <masutu dot arch at gmail dot com>
2 # Contributor: masutu <masutu dot arch at gmail dot com>
6 pkgdesc="Open source tool for precise mass spectrometric data analysis and interpretation written in python."
8 url="http://www.mmass.org"
10 depends=('python2-numpy' 'wxpython')
11 source=(${url}/download/files/${pkgname}_v${pkgver}_source.zip)
12 md5sums=('25231c5e1738f7a1bb112160a17cb6e3')
15 cd "$srcdir/mMass/mspy/plot"
16 python2 setup.py build
17 cp build/lib.linux-*-*/calculations.so .
22 install -m 0755 -d $pkgdir/usr/bin
23 install -m 0755 -d $pkgdir/usr/share/$pkgname
24 install -m 0755 -d $pkgdir/usr/share/$pkgname/{configs,gui,mspy}
25 install -m 0755 -d $pkgdir/usr/share/$pkgname/gui/images/gtk
26 install -m 0755 -d $pkgdir/usr/share/$pkgname/mspy/plot
27 install -m 0644 mmass.py $pkgdir/usr/share/$pkgname
28 install -m 0644 configs/*.xml $pkgdir/usr/share/$pkgname/configs
29 install -m 0644 gui/*.py $pkgdir/usr/share/$pkgname/gui
30 install -m 0644 gui/images/gtk/*.png $pkgdir/usr/share/$pkgname/gui/images/gtk
31 install -m 0644 mspy/*.py $pkgdir/usr/share/$pkgname/mspy
32 install -m 0644 mspy/plot/*.py $pkgdir/usr/share/$pkgname/mspy/plot
33 install -m 0755 mspy/plot/calculations.so $pkgdir/usr/share/$pkgname/mspy/plot
34 cat >$pkgdir/usr/bin/mmass <<EOF
36 python2 /usr/share/mmass/mmass.py
38 chmod 0755 $pkgdir/usr/bin/mmass
41 # vim:set ts=2 sw=2 et: