summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 351b30cfde2c69fcbc09d59bb05d43254f9f75f2 (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
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
_base=manim-beamer
pkgname=python-${_base,,}-git
pkgver=r75.9f716cc
pkgrel=1
pkgdesc="Emulate LATEX beamer with Python and manim-slides"
arch=(x86_64)
url="https://github.com/johnHostetter/${_base}"
license=(MIT)
depends=(python-annotated-types python-bibtexparser python-manim-slides python-manimpango pyside6 python-qtpy)
makedepends=(python-build python-installer python-hatchling git)
source=(git+${url}.git)
sha512sums=('SKIP')

pkgver() {
  cd ${_base}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd ${_base}
  python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
  cd ${_base}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}