blob: eacf95af2275a719762d1fc7624deab41567fb7d (
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
|
# Maintainer: haxibami <contact at haxibami dot net>
pkgname=python-opack2
_pkgname="${pkgname#python-}"
pkgver=0.0.1
pkgrel=1
pkgdesc='Python library for parsing the opack format (fork)'
arch=('any')
url='https://github.com/doronz88/opack2'
license=('GPL3')
depends=('python' 'python-arrow' 'python-construct')
makedepends=('python-build' 'python-wheel' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest')
conflicts=('python-opack')
provides=('python-opack')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('0610be9f1be8638582c699b93186685066c78f30a76bbb1b87683c783d8e560f')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m pytest
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|