summaryrefslogtreecommitdiff
path: root/main/py-flup/APKBUILD
blob: 7a886a0ed92bb757e1dbafdc9e4e951661b4910f (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
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=flup
pkgname=py-${_pkgname}
pkgver=1.0.2
pkgrel=0
pkgdesc="WSGI modules for Python"
url="https://www.saddi.com/software/flup/"
arch="noarch"
license="BSD"
makedepends="python2-dev py-setuptools"
depends="python2"
source="$pkgname-$pkgver.tar.gz::https://www.saddi.com/software/flup/dist/${_pkgname}-${pkgver}.tar.gz"

_builddir="${srcdir}/${_pkgname}-${pkgver}"

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

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

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

md5sums="24dad7edc5ada31dddd49456ee8d5254  py-flup-1.0.2.tar.gz"
sha256sums="4bad317a5fc1ce3d4fe5e9b6d846ec38a8023e16876785d4f88102f2c8097dd9  py-flup-1.0.2.tar.gz"
sha512sums="65c610f9ddc3df6ed6deb6753b2b15ce4f4579efd9dfd25166d3b6803e5d7058fee6617388c9c67c39f7db54da5c918181dcbddfbb7be4a78cf8b65501af4c4a  py-flup-1.0.2.tar.gz"