blob: f24203204f1c6f859e02e3480395f9eb2896324f (
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
36
37
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=python-pynetdicom
_pkgname=pynetdicom
pkgver=2.1.1
pkgrel=1
pkgdesc='A Python implementation of the DICOM networking protocol'
arch=(any)
url='https://github.com/pydicom/pynetdicom'
license=(MIT)
depends=(
python-pydicom
)
makedepends=(
python-build
python-installer
python-poetry-core
python-wheel
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pydicom/pynetdicom/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('55bc5c77cc41e3088ac31e3cac25599ddb7c24a980b835f49585206f9f49541b5e6adaa085bc56d936defb9f3dcb02ada599beb0cfecdbd5d66537a406d942cd')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}"
# avoid file conflicts with dcmtk, add pynetdicom prefix
for i in "${pkgdir}/usr/bin"/*; do
mv -vf "$i" "${pkgdir}/usr/bin/pynetdicom-$(basename "$i")"
done
}
# vim:set ts=2 sw=2 et:
|