summaryrefslogtreecommitdiff
path: root/python-pycifrw/PKGBUILD
blob: 74a2735f9b0d0db1d2075086fc2becc7a746cdbd (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
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname=python-pycifrw
_pkgname='PyCifRW'
pkgver=4.4.1
pkgrel=4
pkgdesc='Python library for interacting with Crystallographic Information Framework (CIF) files.'
arch=('i686' 'pentium4' 'x86_64')
url='https://bitbucket.org/jamesrhester/pycifrw/src/development/'
license=('custom')
depends=(
  'python>=3.8'
  'python<3.9')
makedepends=(
  'python-setuptools')

source=("https://pypi.python.org/packages/b3/09/7578e066d81ba978b6eefe2330cc80940939ed4be423e1c8ef49181540ca/PyCifRW-${pkgver}.tar.gz")
sha512sums=('41cc26a7d6026bb927d531b27e1228d89fe713f7ab9360b8e06b563449ee7b53afc9260d09bb199f4390b12a9d31573f8fa6bae14804239d4075b5d8dce01f54')

build() {
  cd ${_pkgname}-${pkgver}
  python setup.py build
}

package_python-pycifrw() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
  install -D 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}