summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fcbd259e9ea19588e13ded95dfdbeb7c144cebc (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
# Maintainer: Martin Rys <https://rys.rs/contact> | Toss a coin on https://rys.rs/donate

pkgname=python-ioctl-opt
_reponame=ioctl-opt
pkgver=1.3
pkgrel=2
pkgdesc="Pythonified Linux asm-generic/ioctl.h"
url="https://pypi.org/project/ioctl-opt/"
arch=(any)
license=('GPL-2.0-only')
depends=(
	'python'
)
makedepends=(
	'git'
	'python-build'
	'python-installer'
	'python-setuptools'
)
source=("https://pypi.org/packages/source/${_reponame::1}/${_reponame}/${_reponame}-${pkgver}.tar.gz")
sha256sums=('5ed4f9a80d2e02e152a43d3648d7ed8821a0aac5ea88ecc5fcc14460ff7cf2f9')

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

package() {
	cd "${srcdir}/${_reponame}-${pkgver}"

	python -m installer --destdir="${pkgdir}" dist/*.whl

	install -d "${pkgdir}/usr/share/licenses/${pkgname}/"
	cp ./COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}