summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorButui Hu2021-05-24 12:31:31 +0800
committerButui Hu2021-05-24 12:31:31 +0800
commitfca326d09a6a79188e8adc1101dcf2ea0bcc3ec2 (patch)
treee21b113ec13a1b94dd17717cf3fb093c342c6a39
downloadaur-python-deid.tar.gz
first commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD31
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..14648f55ae32
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-deid
+ pkgdesc = Best effort anonymization for medical images using python
+ pkgver = 0.1.16
+ pkgrel = 1
+ url = https://github.com/pydicom/deid
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python-matplotlib
+ depends = python-pydicom
+ source = python-deid-0.1.16.tar.gz::https://github.com/pydicom/deid/archive/refs/tags/0.1.16.tar.gz
+ sha512sums = 3d19af8b2e921cdf7618f26562ff30f464944eb939a6bc6cf9fbbd9d7780a23a08155266b731d3ee1ecd10ee576819110b89f83238d2013c9d5d55c8645132cf
+
+pkgname = python-deid
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a08f1b29273c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+
+pkgname=python-deid
+_pkgname=deid
+pkgver=0.1.16
+pkgrel=1
+pkgdesc='Best effort anonymization for medical images using python'
+arch=(any)
+url='https://github.com/pydicom/deid'
+license=(MIT)
+depends=(
+ python-matplotlib
+ python-pydicom
+)
+makedepends=(
+ python-setuptools
+)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pydicom/deid/archive/refs/tags/${pkgver}.tar.gz")
+sha512sums=('3d19af8b2e921cdf7618f26562ff30f464944eb939a6bc6cf9fbbd9d7780a23a08155266b731d3ee1ecd10ee576819110b89f83238d2013c9d5d55c8645132cf')
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+# vim:set ts=2 sw=2 et: