summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a36790f038eb705fcbd5e645efd880adf2e68a8 (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: GI_Jack <GI_Jack@hackermail.com>

pkgname=python-minikerberos
_pkgname=minikerberos
pkgver=0.4.2
pkgrel=1
pkgdesc="Kerberos manipulation library in pure Python"
url="https://pypi.org/project/minikerberos"
arch=('any')
license=('MIT')
depends=('python' 'python-asn1crypto' 'python-asysocks' 'python-oscrypto')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('04408a586e67c4808e49f40981726a0a48b681cbff651ac3168e7b9d71ef868b')

build() {
    cd "${_pkgname}-${pkgver}"
    rm -rf tests # remove tests before build, or they conflict with other packages
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pkgname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    #find "${pkgdir}/usr/lib/" -type d -name tests -exec rm -rf {} +
}