summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23d2be607795bd3f11084af4c564daff635e4294 (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
# Maintainer: Robin Ekman < robin.seth.ekman [at] gmail [dot] com >

pkgname=python-ass
pkgver=0.5.4
pkgrel=5
pkgdesc="A library for parsing and manipulating Advanced SubStation Alpha subtitle files."
url='http://github.com/chireiden/python-ass'
arch=('any')
license=('MIT')
depends=(
    'python>=3.8'
    'libass'
)
makedepends=('python-setuptools')
checkdepends=(
    'python-pytest'
    'python-pillow'
)
source=('https://github.com/chireiden/python-ass/archive/refs/tags/0.5.4.tar.gz')
sha256sums=('1a2bf40a87f1a4b7d81fac5805289bfcd11d202e00e5844211d0dda44c884618')

prepare() {
    cd "${pkgname}-${pkgver}"
    touch tests/__init__.py
}

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

check () {
    cd "${pkgname}-${pkgver}"
    pytest
}

package() {
    cd "${pkgname}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}