diff options
author | Butui Hu | 2021-05-06 11:17:34 +0800 |
---|---|---|
committer | Butui Hu | 2021-05-06 11:17:34 +0800 |
commit | 05abc70867a5ac37170340979514ee702129d33d (patch) | |
tree | 384d1063c4e83ccd0d58adc7994ac86abf7b40ef | |
download | aur-05abc70867a5ac37170340979514ee702129d33d.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1e61af984aa7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-pylibjpeg-rle + pkgdesc = Fast DICOM RLE plugin for pylibjpeg + pkgver = 1.1.0 + pkgrel = 1 + url = https://github.com/pydicom/pylibjpeg-rle + arch = x86_64 + license = MIT + makedepends = python-pip + makedepends = python-wheel + makedepends = python-setuptools + makedepends = python-setuptools-rust + depends = python-numpy + source = python-pylibjpeg-rle-1.1.0.tar.gz::https://github.com/pydicom/pylibjpeg-rle/archive/refs/tags/v1.1.0.tar.gz + sha512sums = 01f975f5ba1deb21236fe7ae51d022989171eb87c89ceb7cfc53f445834cacbc1c8f3965b07b3d0036ac1403cecd1f388b102a52506caa3c9f1d4a632031328c + +pkgname = python-pylibjpeg-rle + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bedbac49bb83 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Butui Hu <hot123tea123@gmail.com> + +_pkgname=pylibjpeg-rle +pkgname=python-pylibjpeg-rle +pkgver=1.1.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=('01f975f5ba1deb21236fe7ae51d022989171eb87c89ceb7cfc53f445834cacbc1c8f3965b07b3d0036ac1403cecd1f388b102a52506caa3c9f1d4a632031328c') + +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: |