summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d756eeef79d5cfb1c36640ad051bb081e36f01a (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
# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
_pkgname=urllib-gssapi
pkgname=python-urllib-gssapi
pkgver=1.0.2
pkgrel=2
pkgdesc="GSSAPI (HTTP Negotiate) authentication for Python urllib"
url="https://github.com/pythongssapi/urllib-gssapi"
arch=(any)
license=(Apache)
depends=(python-gssapi)
makedepends=(git python-build python-installer)
_commit=ef1e484ab935e68fb4de763ff36d5ab541df04fc
source=("git+https://github.com/pythongssapi/urllib-gssapi#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed "s/^v//; s/-/.r/; s/-/./"
}

build() {
  cd $_pkgname
  python -m build --wheel --no-isolation
}

package() {
  cd $_pkgname
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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