# Maintainer: Andrew Steinke # Contributor: Daniel E. Shub # Contributor: Martin Corley pkgname=psychopy pkgver=3.0.7 pkgrel=2 pkgdesc="An experiment builder for neuroscience, psychology and psychophysics" arch=('any') url="http://www.psychopy.org" license=('GPL3') depends=('python-matplotlib' 'python-pandas' 'python-opengl' 'python-pyglet' 'python-moviepy' 'python-lxml' 'python-openpyxl' 'python-configobj' 'python-freetype-py' 'python-gitpython' 'python-gitlab' 'python-pyzmq' 'python-json-tricks' 'python-pygame' 'python-pyqt5' 'python-imageio-ffmpeg' 'python-soundfile' 'python-sounddevice' 'python-pytables' 'python-msgpack-numpy' 'python-gevent' 'python-pyaml' 'python-cryptography' 'python-pyopenssl' 'python-xlrd' 'python-pyosf' 'python-bidi' 'python-esprima' 'python-pyparallel' 'python-psutil' 'python-astunparse' 'python-pyserial' 'python-arabic-reshaper' 'python-wxpython' 'webkit2gtk' 'python-mock') makedepends=('python-wheel' 'python-setuptools') optdepends=('python-seaborn: For nice graphs') source=("https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz" "setup.cfg.patch") md5sums=('6edaaeea126f58b6e73cc2baba07b88c' '51eae5ff98af0e0f83ca7187ff81e055') prepare() { # apply patch to psychopy requirements in setup.cfg # archlinux opencv pacakge provides python bindings, but no metadata # wxpython is required for linux # psychopy msgpack requirement is outdated with archlinux version cd "$srcdir/$pkgname-$pkgver" patch --strip=0 --forward --input="$srcdir/setup.cfg.patch" } build() { cd "$srcdir/$pkgname-$pkgver" python setup.py build } package() { cd "$srcdir/$pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build # desktop files cd "$pkgname/app/Resources" install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" install -Dm644 "$pkgname.xml" "$pkgdir/usr/share/mime/packages/$pkgname.xml" } # vim:set ts=2 sw=2 et: