summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b333b01c38340216a1b6365b2eef07aea6c79b7b (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
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Groctel <aur@taxorubio.com>
pkgname=manim-community
_name=manim
pkgver=0.2.0
pkgrel=1
pkgdesc="Animation engine for explanatory math videos (community edition)."
arch=('any')
url="https://github.com/ManimCommunity/manim/"
license=('MIT' 'custom')
depends=(
	'python'
	'cairo'
	'ffmpeg'
	'python'
	'python-black'
	'python-cairo'
	'python-colour'
	'python-grpcio'
	'python-guzzle-sphinx-theme'
	'python-matplotlib'
	'python-networkx'
	'python-numpy'
	'python-pillow'
	'python-pygments'
	'python-pylint'
	'python-pytest'
	'python-recommonmark'
	'python-rich'
	'python-scipy'
	'python-tqdm'
	'python-watchdog'

	# Aur dependencies
	'python-grpcio-tools'
	'python-manimpango'
	'python-pydub'
)
makedepends=(
	'sed'
)
optdepends=(
	'texlive-most: latex support'
)
conflicts=('python-manimlib')
provides=()
source=("https://github.com/ManimCommunity/$_name/releases/download/v$pkgver/$_name-$pkgver.tar.gz")
sha256sums=('01925f8550b5dd96275259e1943a12216d18f851202aa88abde16d660148638f')

prepare() {
	cd "$srcdir/$_name-$pkgver"
	sed -i "/'progressbar',/d" setup.py
	sed -i 's/rich>=6.0,<7.0/rich/' setup.py
}

build() {
	cd "$srcdir/$_name-$pkgver"
	python setup.py build
}

package() {
	cd "$srcdir/$_name-$pkgver"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
	install -D -m644 LICENSE.community "$pkgdir/usr/share/licenses/$_name/LICENSE.community"
}