summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d8dd1996e742e419c8012a45de018789518f6d7 (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
# Maintainer: Simon Perry <aur [at] sanxion [dot] net>

pkgname=python-pyswagger
_distname=pyswagger
pkgver=0.8.38
pkgrel=2
pkgdesc="Python client for Swagger enabled REST APIs"
arch=('any')
license=('MIT')
url="https://github.com/mission-liao/pyswagger"
makedepends=('python-setuptools')
depends=('python-six' 'python-pyaml' 'python-validate_email-git')
source=("${_distname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('0cc0b5f05494589c7928fe632243803ebb4da4bf22c0826ed81620a02db1d302')

build() {
  cd "${srcdir}"/"${_distname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}"/"${_distname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}