summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b29e22d415d1fda6b9127c1022fd2764b792aa0 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Anthony25 <Anthony Ruhier>
#
# Thanks to Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com> for
# his PKGBUILD that served as a base for this one

pkgbase=python-coreapi
_pkgbase="${pkgbase#python-}"
pkgname=(python-coreapi python2-coreapi)
pkgver=2.3.3
pkgrel=1
pkgdesc='Python client library for Core API. http://core-api.github.io/python-client/'
arch=(any)
url='https://github.com/core-api/python-client'
license=(BSD)
makedepends=(
  python-setuptools
  python2-setuptools
)
options=(!emptydirs)
source=("https://github.com/core-api/python-client/archive/${pkgver}.tar.gz")
sha256sums=('e4a29e73793efb4dc34006f00ff966b3fe05ca9fe36868145c8dad7cfe0a816c')

package_python-coreapi() {
  depends=(
    'python-coreschema'
    'python-itypes'
    'python-requests'
    'python-uritemplate'
  )
  cd "${srcdir}/python-client-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
}

package_python2-coreapi() {
  depends=(
    'python2-coreschema'
    'python2-itypes'
    'python2-requests'
    'python2-uritemplate'
  )
  cd "${srcdir}/python-client-${pkgver}"
  python2 setup.py install --root="${pkgdir}/" --optimize=1
}

# vim:set ts=2 sw=2 et: