summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07d096f55ee630d1e6e2b4560e849ef1d1a2a6f6 (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
# Maintainer: Falko Galperin <dr (dot) asasteghof (at) gmail (dot) com>
pkgname=python-ctypesgen
pkgver=1.1.1
pkgrel=1
pkgdesc="Pure-python wrapper generator for ctypes"
arch=(any)
url="https://github.com/ctypesgen/ctypesgen"
license=('BSD')
depends=('python>=3.7.0')
makedepends=('python-setuptools>=44.0.0' 'python-installer' 'python-wheel' 'python-setuptools-scm>=3.4.3' 'python-build' 'python-toml')
checkdepends=('python-pytest')
changelog=$pkgname.changelog.md
_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=("deaa2d64a95d90196a2e8a689cf9b952be6f3366f81e835245354bf9dbac92f6")

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

check() {
	cd "$_name-$pkgver/"
	pytest tests/testsuite.py
}

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