aboutsummaryrefslogtreecommitdiffstats
path: root/main/apache2-mod-wsgi/APKBUILD
blob: b8f2bb4fec7c0b3490bc80f038a7d84af4152e57 (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
43
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=apache2-mod-wsgi
_realname=mod_wsgi
pkgver=4.4.15
pkgrel=0
pkgdesc="Python WSGI Module for Apache2"
url="http://code.google.com/p/modwsgi/"
arch="all"
license="ASL 2.0"
depends="apache2 python"
depends_dev=
makedepends="$depends_dev apache2-dev python-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GrahamDumpleton/mod_wsgi/archive/$pkgver.tar.gz
	$pkgname.apache2.conf"

builddir="$srcdir"/$_realname-$pkgver
build() {
	cd "$builddir"
	CFLAGS="" CXXFLAGS="" CPPFLAGS="" \
	./configure --prefix=/usr \
		--with-apxs=/usr/bin/apxs \
		--with-python=/usr/bin/python || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 "$srcdir"/$pkgname.apache2.conf \
		"$pkgdir"/etc/apache2/conf.d/wsgi-module.conf || return 1
	install -Dm644 LICENSE \
		"$pkgdir"/usr/share/doc/$pkgname/LICENSE || return 1
}

md5sums="aa1bcc1289c2857f732b48627af9c5b0  apache2-mod-wsgi-4.4.15.tar.gz
e1795e051e7aae1f865fde0d3b86a507  apache2-mod-wsgi.apache2.conf"
sha256sums="1cf7c9376eef9858d8c58e23e11322e2c13948935c19995856cf091fcaeeb1db  apache2-mod-wsgi-4.4.15.tar.gz
8196a509f90fa10b9464d1c58f4a13d558259e863ccc2761ee1e2c2fcd323f45  apache2-mod-wsgi.apache2.conf"
sha512sums="def902a58737f5e1b829b7b5fdf0eadaa1c09e0a6d792f831e3e8abe4c06154fc83a08c5af7bb834567092df6def184777f5d7458e5e9954a08608cd31291647  apache2-mod-wsgi-4.4.15.tar.gz
5b36a458bd3539e58ea61ec405c4f5c5e0001a644263b0e1f8421a5c7fc7884b6df1355674a9d9b610780b5e9db6ce66d0ae1bbc0e512ecb027c3757209152c8  apache2-mod-wsgi.apache2.conf"