blob: ec8ac631f51a7d259427f8a5d996cfe165a31a30 (
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: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-rpp
pkgver=0.5
pkgrel=1
pkgdesc='Read and write Reaper RPP files with Python'
arch=('any')
url='https://github.com/Perlence/rpp'
license=('MIT')
depends=('python' 'python-attrs' 'python-ply')
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
checkdepends=('python-pytest' 'python-pytest-runner')
_commit='6ea00bb6db76724d3521748b3effa7260f1ebf8e'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname"
PYTHONPATH="$PWD:$PYTHONPATH" pytest -v
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.rst
}
|