blob: fd40e9631de05b8fa236a7591ece4d70b8ffb37f (
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
|
# Maintainer: Neko_Rikka <yjzyl9008 at gmail dot com>
pkgname=python-pyfmodex-git
pkgver=r231.80b028b
pkgrel=1
pkgdesc="Python bindings for the FMOD Ex sound library"
arch=('x86_64')
url="https://github.com/tyrylu/pyfmodex"
license=('MIT')
depends=('python')
provides=('python-pyfmodex')
conflicts=('python-pyfmodex')
checkdepends=('python-pytest' 'python-pytest-cov')
makedepends=('python-build' 'python-installer' 'python-wheel')
optdepends=('fmodengine: FMOD Engine API and tools')
source=("git+https://github.com/tyrylu/pyfmodex.git")
md5sums=('SKIP')
install=$pkgname.install
pkgver() {
cd pyfmodex
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
check() {
cd pyfmodex
export LD_LIBRARY_PATH="tests/lib/Linux"
pytest -v --cov || true
}
build() {
cd pyfmodex
python -m build --wheel --no-isolation
}
package() {
cd pyfmodex
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
}
|