aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-passlib/APKBUILD
blob: 4c66a205d78735cf7310881e4d19b7c10633bd53 (plain) (blame)
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
33
34
35
36
37
38
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-passlib
pkgver=1.6.2
pkgrel=0
pkgdesc="A python hashing library for over 30 schemes"
url="http://passlib.googlecode.com/"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python2-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/p/passlib/passlib-$pkgver.tar.gz"

_builddir="$srcdir"/passlib-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="2f872ae7c72ca338634c618f2cff5863  passlib-1.6.2.tar.gz"
sha256sums="e987f6000d16272f75314c7147eb015727e8532a3b747b1a8fb58e154c68392d  passlib-1.6.2.tar.gz"
sha512sums="4c58df875549d9d4a5a9cb5d7b8e853b2614cab1c67a35d0d113fcd6332bbe0f5b6d2521d71eade2e020d0a42cd9ce0a6e866c82bc1a840391f9005ba0baceea  passlib-1.6.2.tar.gz"