-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Contributor: Dmitry Romanenko <dmitry@romanenko.in> | ||
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in> | ||
pkgname=py-gssapi | ||
_pkgname=gssapi | ||
pkgver=1.5.1 | ||
pkgrel=0 | ||
pkgdesc="A Python interface to RFC 2743/2744 (plus common extensions)" | ||
url="https://github.com/pythongssapi/python-gssapi" | ||
arch="all" | ||
license="ISC" | ||
depends="" | ||
#checkdepends="py-nose py-shouldbe py-k5test" # Tests are missing alpine packages | ||
makedepends="python2-dev python3-dev krb5-dev py-setuptools" | ||
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" | ||
source="https://files.pythonhosted.org/packages/source/g/$_pkgname/$_pkgname-$pkgver.tar.gz" | ||
builddir="$srcdir"/$_pkgname-$pkgver | ||
|
||
build() { | ||
cd "$builddir" | ||
python2 setup.py build | ||
python3 setup.py build | ||
} | ||
|
||
#check() { | ||
# cd "$builddir" | ||
# python2 -m pytest -xvv test.py | ||
# python3 -m pytest -xvv test.py | ||
#} | ||
|
||
package() { | ||
mkdir -p "$pkgdir" | ||
} | ||
|
||
_py2() { | ||
_py python2 | ||
} | ||
|
||
_py3() { | ||
_py python3 | ||
} | ||
|
||
_py() { | ||
local python="$1" | ||
pkgdesc="$pkgdesc (for $python)" | ||
depends="$depends $python" | ||
install_if="$pkgname=$pkgver-r$pkgrel $python" | ||
|
||
cd "$builddir" | ||
$python setup.py install --prefix=/usr --root="$subpkgdir" | ||
} | ||
|
||
sha512sums="d0c27360e1f54a322f311f102ad498a3794e5f22aa9e07f917fa074d02f1643932ba34d630761c62500e5f780a5c6b207ee4662507ca88f99fcfd4563d7241b0 gssapi-1.5.1.tar.gz" |