aboutsummaryrefslogtreecommitdiffstats
path: root/main/apache2-mod-wsgi/APKBUILD
blob: 9be36d92d21d9be3d2624c7d5f9f2d65bb848175 (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
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=apache2-mod-wsgi
_realname=mod_wsgi
pkgver=4.9.3
pkgrel=0
pkgdesc="Python WSGI Module for Apache2"
url="https://github.com/GrahamDumpleton/mod_wsgi"
arch="all"
license="Apache-2.0"
depends="apache2"
makedepends="apache2-dev python3-dev"
options="!check" # no tests provided
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() {
	CFLAGS="" CXXFLAGS="" CPPFLAGS="" \
	./configure --prefix=/usr \
		--with-apxs=/usr/bin/apxs \
		--with-python=/usr/bin/python3
	make
}

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

sha512sums="
75061bee9a7d6b787c822cf396ce5e8c2c51d616648e6795f1ba170a9d771817df365115f633d3112330d800151697974863f1a0242408c511a233434fc3e2ec  apache2-mod-wsgi-4.9.3.tar.gz
5b36a458bd3539e58ea61ec405c4f5c5e0001a644263b0e1f8421a5c7fc7884b6df1355674a9d9b610780b5e9db6ce66d0ae1bbc0e512ecb027c3757209152c8  apache2-mod-wsgi.apache2.conf
"