diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-26 04:08:50 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-26 04:08:50 +0000 |
commit | cda3f380f74d60573c1202f7f34a79c8182e341a (patch) | |
tree | 267f0bea80b969004688d5352a9472b4816a8742 /community/mod_wsgi | |
parent | 5f3874cb8718456941af21c866515ddddd82edbc (diff) |
Mon May 26 04:03:20 UTC 2014
Diffstat (limited to 'community/mod_wsgi')
-rw-r--r-- | community/mod_wsgi/PKGBUILD | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/community/mod_wsgi/PKGBUILD b/community/mod_wsgi/PKGBUILD index 7e5a1af92..cae5a5490 100644 --- a/community/mod_wsgi/PKGBUILD +++ b/community/mod_wsgi/PKGBUILD @@ -1,33 +1,52 @@ -# $Id: PKGBUILD 106738 2014-03-06 21:43:47Z anatolik $ +# $Id: PKGBUILD 111823 2014-05-25 10:39:16Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: Ryan Coyner <rcoyner@gmail.com> -pkgname=mod_wsgi -pkgver=3.4 -pkgrel=4 -pkgdesc='Python WSGI adapter module for Apache' +pkgbase=mod_wsgi +pkgname=($pkgbase 'mod_wsgi2') +pkgver=3.5 +pkgrel=1 +pkgdesc='Python2 WSGI adapter module for Apache' arch=('x86_64' 'i686') url='http://www.modwsgi.org/' license=('APACHE') -depends=('apache' 'python') -install=mod_wsgi.install -source=("http://modwsgi.googlecode.com/files/$pkgname-$pkgver.tar.gz") -sha256sums=('ae85c98e9e146840ab3c3e4490e6774f9bef0f99b9f679fca786b2adb5b4b6e8') +makedepends=('apache' 'python' 'python2') +install='mod_wsgi.install' +source=("https://github.com/GrahamDumpleton/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('f0674c38f0f568ece55610bcc6a775c179835c4cba23aa7f876d2a2a8520bf93') build() { - cd "$srcdir/$pkgbase-$pkgver" + cp -r "$pkgbase-$pkgver" py2 + # Build the Python 3 version + cd "$pkgbase-$pkgver" ./configure --prefix=/usr \ --with-apxs=/usr/bin/apxs \ --with-python=/usr/bin/python make LDLIBS='-lpython3 -lpthread -ldl -lutil -lm' + + # Build the Python 2 version + cd "$srcdir/py2" + ./configure \ + --prefix=/usr \ + --with-apxs=/usr/bin/apxs \ + --with-python=/usr/bin/python2 + make } -package() { - cd "$srcdir/$pkgbase-$pkgver" +package_mod_wsgi() { + pkgdesc='Python WSGI adapter module for Apache' + depends=('apache' 'python') + conflicts=('mod_wsgi2') + make -C "$pkgbase-$pkgver" DESTDIR="$pkgdir" install +} - make DESTDIR="$pkgdir" install +package_mod_wsgi2() { + pkgdesc='Python2 WSGI adapter module for Apache' + depends=('apache' 'python2') + conflicts=('mod_wsgi') + make -C py2 DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: |