blob: 761d49ee9c912edcd38a83fbcde883149d3378ad (
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
|
# Maintainer: Korialo <korialo001[at]gmail[dot]com>
_pkgname=pysubs2
pkgname=python-pysubs2-git
pkgver=1.7.3.r2.g04837a4
pkgrel=4
pkgdesc="A Python library for editing subtitle files"
arch=('any')
url="https://github.com/tkarabela/pysubs2"
license=('MIT')
groups=()
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-ruff' 'python-pytest-mypy' 'python-pytest-timeout')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
provides=('python-pysubs2=1.7.3')
conflicts=('python-pysubs2')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/$pkgname"
pytest -vv
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|