blob: 045d7c282969b4457736840e8ab4f9b4cb5a5780 (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=python-peachpy-git
pkgver=r379.349e8f8
pkgrel=1
pkgdesc='Python framework for writing high-performance assembly kernels (git version)'
arch=('any')
url='https://github.com/Maratyszcza/PeachPy/'
license=('BSD')
depends=('python' 'python-six')
makedepends=('git' 'python-build' 'python-installer' 'python-opcodes' 'python-setuptools' 'python-wheel')
provides=('python-peachpy')
conflicts=('python-peachpy')
source=('git+https://github.com/Maratyszcza/PeachPy.git')
sha256sums=('SKIP')
pkgver() {
printf 'r%s.%s' "$(git -C PeachPy rev-list --count HEAD)" "$(git -C PeachPy rev-parse --short HEAD)"
}
build() {
cd PeachPy
python -m build --wheel --no-isolation
}
package_python-peachpy-git() {
python -m installer --destdir="$pkgdir" "PeachPy/dist"/*.whl
local _pyver
local _pkgver
_pyver="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
_pkgver="$(awk -F'=' "/__version_info__/ { gsub(/,/, \".\"); gsub(/['()[:space:]]+/, \"\"); print \$2; exit }" PeachPy/peachpy/__init__.py)"
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "../../../lib/python${_pyver}/site-packages/PeachPy-${_pkgver}.dist-info/LICENSE.rst" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|