summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18f975240fb307cc1a85f2dc2b94cc75a196f1b6 (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
# Maintainer: Andrew O'Neill <andrew at meanjollies dot com>

pkgname=python-httpsig_cffi
_pyname=httpsig_cffi
pkgver=15.0.0
pkgrel=1
pkgdesc='Sign HTTP requests with secure signatures according to the IETF HTTP Signatures specification using Cryptography'
arch=('any')
url='https://github.com/hawkowl/httpsig_cffi'
license=('MIT')
depends=('python' 'python-six' 'python-cryptography')
makedepends=('python-setuptools')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('d3d700429c4672a87c149e0be4248ec1e5898d689feb9e959529f0d32df72c3f')

build() {
  cd "${_pyname}-${pkgver}"

  python setup.py build
}

package() {
  cd "${_pyname}-${pkgver}"

  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}