blob: 11c2a23e2e007fad3a6aa775a467509e0cecf4bc (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=pylibjpeg-rle
pkgname=python-pylibjpeg-rle
pkgver=1.3.0
pkgrel=1
pkgdesc='Fast DICOM RLE plugin for pylibjpeg'
arch=('x86_64')
url='https://github.com/pydicom/pylibjpeg-rle'
license=(MIT)
depends=(
python-numpy
)
makedepends=(
python-pip
python-wheel
python-setuptools
python-setuptools-rust
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pydicom/pylibjpeg-rle/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('cb24d00e9a24b0d9afd483e514ef42a42226f1c7c0d9bf24c615336c6d5d4f1052ca13e6be9f3510868de5ad5b74ec7b0ce13f524858c21c65f86868ebcc30ba')
build() {
cd "${_pkgname}-${pkgver}"
python setup.py bdist_wheel
}
package() {
cd "${_pkgname}-${pkgver}"
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
python -O -m compileall "${pkgdir}/usr/lib"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|