blob: bf6791ee4bd55b78bf783f6c7f6d9289e079a170 (
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
|
# Contributor: gesh <gesh@gesh.uni.cx>
# Contributor: sasvari
pkgname=python-bibtexparser-git
_pkgname="${pkgname%-git}"
pkgrel=2
pkgver=20240521.214ef38
pkgdesc="Bibtex parser in Python"
arch=('any')
url="https://bibtexparser.readthedocs.org/"
license=('LicenseRef-MIT')
depends=('python' 'python-pylatexenc')
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
checkdepends=('python-pytest' 'python-pytest-cov')
provides=("python-bibtexparser")
conflicts=("python-bibtexparser")
source=("git+https://github.com/sciunto-org/python-bibtexparser.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git log -1 --format=%cd.%h --date=short | tr -d -
}
build() {
cd "$srcdir/$_pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/$_pkgname"
python -m pytest
}
package() {
cd "$srcdir/$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|