blob: e9d34c3db3c7ea8fbc0548e4d47569206b0f65f9 (
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
|
# Maintainer: Stella <jens300304 at gmail dot com>
# Maintainer: bemxio <bemxiov at protonmail dot com>
pkgname=python-osrparse
_name=${pkgname#python-}
pkgdesc="Parser for .osr (osu! replays) file format"
pkgver=7.0.0
pkgrel=3
arch=(any)
url="https://pypi.org/project/osrparse/"
license=("MIT")
depends=(python)
makedepends=(python-build python-installer python-wheel)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
md5sums=("51353e97c7e3e45a7bcee6cc4be61860")
build() {
# move to the source directory
cd "${_name}-${pkgver}"
# build the package
python -m build --wheel --no-isolation
}
#check() {
# # move to the source directory
# cd "${_name}-${pkgver}"
#
# # run all tests
# python -m pytest
#}
package() {
# move to the source directory
cd "${_name}-${pkgver}"
# package the files
python -m installer --destdir="${pkgdir}" dist/*.whl
# bundle the license in the package
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|