summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24824d3972cc2c5d00c4ad727d1b29788ce91c70 (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
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
# Contributor: Stella <jens300304@gmail.com>

_name=slider
pkgname=python-$_name
pkgver=0.8.4
pkgrel=1
pkgdesc="Utilities for working with osu! files and data."
arch=(any)
url="https://github.com/llllllllll/slider"
license=('LGPL3')
depends=(
    'python>=3.6'
    'python-click'
    'python-numpy'
    'python-requests'
    'python-scipy'
)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest)
source=("$url/archive/v$pkgver.tar.gz")
b2sums=('381addf5e183f44b147b8308daaddd010a5628104a0d88e7ad531cb9dd315947ade9eb69d5e03e4c88f170bc9729082a06a019df14994353ef08e81b2c32663e')

# prepare() {
#     cd $_name-$pkgver
#     rm setup.py
#     cp ../../pyproject.toml .
#     cp ../../beatmaps.py slider/example_data/beatmaps/__init__.py
#     cp ../../collections.py slider/example_data/collections/__init__.py
# }

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

check() {
    cd $_name-$pkgver
    pytest
}

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}