blob: 6887717cc52e7fc60a29b8ae75d3ff882f047edc (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
_base=cppimport
pkgname=python-${_base}
pkgdesc="Import C++ files directly from Python!"
pkgver=22.08.02
pkgrel=2
arch=(any)
url="https://github.com/tbenthompson/${_base}"
license=(MIT)
depends=(python-mako pybind11 python-filelock)
makedepends=(python-build python-installer python-setuptools-scm python-wheel)
checkdepends=(python-pytest)
source=(${_base}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
sha512sums=('8487672eeaa92ad6711f4328d8b082e2780aaaee2d9cf89560b61f01e95f200c91247db94bf7a07a5b15aff86ce4400d05acce28f19f623b2e62432f97531ef0')
build() {
cd ${_base}-${pkgver}
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${_base}-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|