summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d4bf8945e38ac805848d41acc84bf62a8bd4ddc (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
30
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Florian Wittmann

_pkgname='DataProperty'
pkgname="python-${_pkgname,,}"
pkgver=0.50.0
pkgrel=2
pkgdesc='Extract properties from data'
arch=('any')
url='https://github.com/thombashi/DataProperty'
_url_pypi='https://pypi.org/project/DataProperty'
license=('MIT')
depends=('python' 'python-mbstrdecoder' 'python-typepy')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('847f2d8927d8426a0eb20e48238e2db19133506bcd1e2608e21314004fa80d72')

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

package() {
  cd "${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et: