blob: 65effa030317363ec0e0a0dacfee6f9802ef6b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer:
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Daniel E. Shub <daniel.e.shub@gmail.com>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor: Andrew Steinke <rkcf@rkcf.me>
# Contributor: Martin Corley <Martin.Corley@ed.ac.uk>
pkgname=psychopy
pkgver=2024.2.4
pkgrel=2
pkgdesc="An experiment builder for neuroscience, psychology and psychophysics"
arch=('any')
url="http://www.psychopy.org"
license=('GPL3')
makedepends=(python-build python-installer python-pdm-backend python-tomlkit python-six)
depends=(python-distro python-pyosf)
optdepends=('python-seaborn: For nice graphs')
source=("https://github.com/psychopy/psychopy/archive/${pkgver}.tar.gz")
sha512sums=('91cb243282688839804a6a2221a9c52be4e516188329f1d184003050ffe6b75361715de577827daf7d0796f08f8b7766c7fa08209ef1acd07d1e4690ae0223ba')
build() {
cd "$srcdir/$pkgname-$pkgver"
rm -rf packaging/
# # The opencv package in Arch is compiled with the python bindings so the python package is not needed
# sed -i '/opencv-python/d' setup.cfg
# # The python-pyglet package is required, but the Arch version is newer than the one specified in setup.cfg. There is probably a cleaner way to do this ...
# sed -i '/pyglet/d' setup.cfg
python -m build --wheel --no-isolation
}
package() {
# These packages come from setup.cfg
depends+=(python python-packaging python-requests python-cryptography python-numpy python-scipy python-matplotlib python-pandas python-pillow python-glfw python-pygame python-opengl python-pyo python-soundfile python-sounddevice python-bidi python-arabic-reshaper python-json-tricks python-xlrd python-openpyxl python-pyserial python-pyaml python-gevent python-msgpack python-msgpack-numpy python-psutil python-pytables python-pyzmq python-ujson python-moviepy python-gitlab python-gitpython python-astunparse python-esprima python-freetype-py python-jedi python-psychtoolbox python-websocket-client python-pyglet python-wxpython python-vlc python-pyparallel python-xlib python-imageio python-pyqt5 python-javascripthon python-questplus pypi-search)
# These packages seem to be required
depends+=(webkit2gtk-4.1 python-xmlschema)
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir=${pkgdir} dist/*.whl
# 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"
}
|