summaryrefslogtreecommitdiffstats
path: root/testing/py-authen-ntlm2/APKBUILD
blob: 2bec76c9fcae2dc0ea9225644df199109881992d (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
33
34
35
36
37
38
39
40
41
42
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=py-authen-ntlm2
_realname=PyAuthenNTLM2
pkgver=2.2
_pkgver=RELEASE_2_2
pkgrel=0
pkgdesc="Authentication module for Apache"
url="https://github.com/Legrandin/PyAuthenNTLM2"
arch="noarch"
license="ASL 2.0"
depends=""
depends_dev="python-dev py-setuptools"
makedepends="$depends_dev"
install=""
subpackages=""
source="https://github.com/Legrandin/$_realname/archive/$_pkgver.zip"

_builddir="$srcdir"/$_realname-$_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="e8cce57ea90d3842ccbe542ee7e1bd4d  RELEASE_2_2.zip"
sha256sums="9dfdd88ef7233335db1efca392ad90813f6ceaeaeda906a27b163674746e586b  RELEASE_2_2.zip"
sha512sums="0c0d46eac73830ecca732fc911d8bba7c06b0ed7c3f21331a3f718b438f5773357443989706fb53fb0193ff758b00a1af420f7a5e4af5eb0b6ee8da55b429db9  RELEASE_2_2.zip"