diff options
author | Butui Hu | 2024-01-09 10:52:12 +0800 |
---|---|---|
committer | Butui Hu | 2024-01-09 10:52:12 +0800 |
commit | 5442cdac620ebed69cb7266327af452a5596a1c2 (patch) | |
tree | bf715eaca9724d7ee4426a6c558a224d492e1732 | |
download | aur-5442cdac620ebed69cb7266327af452a5596a1c2.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3cb19e87db83 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python-pylibjpeg-libjpeg + pkgdesc = A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg + pkgver = 2.0.0 + pkgrel = 1 + url = https://github.com/pydicom/pylibjpeg-libjpeg + arch = x86_64 + license = GPL + makedepends = git + makedepends = poetry + makedepends = python-installer + depends = python-numpy + source = python-pylibjpeg-libjpeg::git+https://github.com/pydicom/pylibjpeg-libjpeg.git#tag=v2.0.0 + sha512sums = SKIP + +pkgname = python-pylibjpeg-libjpeg diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c8c6969eb038 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Butui Hu <hot123tea123@gmail.com> + +_pkgname=pylibjpeg-libjpeg +pkgname=python-pylibjpeg-libjpeg +pkgver=2.0.0 +pkgrel=1 +pkgdesc='A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg' +arch=('x86_64') +url='https://github.com/pydicom/pylibjpeg-libjpeg' +license=(GPL) +depends=( + python-numpy +) +makedepends=( + git + poetry + python-installer +) +source=("${pkgname}::git+https://github.com/pydicom/pylibjpeg-libjpeg.git#tag=v${pkgver}") +sha512sums=('SKIP') + +prepare() { + cd "${pkgname}" + git submodule update --init --recursive +} + +build() { + cd "${pkgname}" + poetry build --format wheel +} + +package() { + cd "${pkgname}" + python -m installer --destdir="${pkgdir}" dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + rm -rf "${pkgdir}${site_packages}/libjpeg/tests" +} +# vim:set ts=2 sw=2 et: |