1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-27 05:20:32 +01:00
Files
aur/PKGBUILD
2018-05-21 18:22:14 +02:00

37 lines
1005 B
Bash

# Maintainer: wedjat <wedjat@protonmail.com>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=python-pydicom
pkgver=1.0.2
pkgrel=1
pkgdesc="Pure python package for working with DICOM files"
arch=("x86_64")
url="https://pydicom.github.io/pydicom/stable/index.html"
license=('MIT' 'custom')
depends=('python' 'python-numpy')
makedepends=('python-setuptools')
optdepends=()
options=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/pydicom/pydicom/archive/v$pkgver.tar.gz" "file://license.txt")
md5sums=('f6381a6a82b8bd8ac6558db2042c8ebb'
'dee3b5d8029934bd8195cd244b966055')
prepare()
{
cd "$srcdir/pydicom-$pkgver"
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python|" $(find -name '*.py')
}
build()
{
cd "$srcdir/pydicom-$pkgver"
python setup.py build
}
package()
{
cd "$srcdir/pydicom-$pkgver"
python setup.py install --skip-build --root="$pkgdir"/ --optimize=1
install -D "$srcdir/pydicom-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}