summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30e0d569853c920909c3aa12ae70c7c3769128bb (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
51
52
53
54
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
# Contributor: Tang Ziya <tcztzy@gmail.com>

_name=manim
pkgname=python-manimgl
pkgver=1.7.2
pkgrel=1
pkgdesc="Animation engine for explanatory math videos"
arch=(any)
url="https://github.com/3b1b/manim"
license=('MIT')
depends=('ffmpeg'
         'ipython>=8.18.0'
         'texlive-core'
         'python>=3.12'
         'python-colour'
         'python-fonttools'
         'python-matplotlib'
         'python-numpy'
         'python-opengl'
         'python-pillow'
         'python-pygments'
         'python-pyperclip'
         'python-pyyaml'
         'python-rich'
         'python-scipy'
         'python-sympy'
         'python-tqdm'
         'python-validators'
         # AUR packages
         'python-mapbox-earcut'
         'python-moderngl'
         'python-moderngl-window'
         'python-skia-pathops'
         'python-pydub'
         'python-pyrr'
         'python-screeninfo'
         'python-manimpango>=0.6.0'
         'python-isosurfaces'
         'python-svgelements>=1.8.1')
makedepends=(python-build python-installer python-setuptools python-wheel)
source=("$url/archive/v$pkgver.tar.gz")
b2sums=('680a4f8d09e1d97519a8c072f201468508a32c7f43a5f80bc33b0659dfd50a19c30984fc6bc781b139930df6673e2719d603af7e87665447efd522464611238c')

build() {
    cd $_name-$pkgver
    python -m build --wheel --no-isolation
}

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}