[arch-commits] Commit in mod_wsgi/trunk (PKGBUILD mod_wsgi.install)

Alexander Rødseth arodseth at archlinux.org
Wed Nov 1 11:18:28 UTC 2017


    Date: Wednesday, November 1, 2017 @ 11:18:27
  Author: arodseth
Revision: 264994

upgpkg: mod_wsgi 4.5.20-1

Modified:
  mod_wsgi/trunk/PKGBUILD
  mod_wsgi/trunk/mod_wsgi.install

------------------+
 PKGBUILD         |   26 ++++++++++++--------------
 mod_wsgi.install |    4 ++--
 2 files changed, 14 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-01 11:16:12 UTC (rev 264993)
+++ PKGBUILD	2017-11-01 11:18:27 UTC (rev 264994)
@@ -5,39 +5,36 @@
 
 pkgbase=mod_wsgi
 pkgname=($pkgbase 'mod_wsgi2')
-pkgver=4.5.17
-pkgrel=2
+pkgver=4.5.20
+pkgrel=1
 pkgdesc='Python WSGI adapter module for Apache'
 arch=('x86_64' 'i686')
 url='http://www.modwsgi.org/'
 license=('APACHE')
-makedepends=('apache' 'python' 'python2' 'git')
+makedepends=('apache' 'git' 'python' 'python2')
 install='mod_wsgi.install'
 source=("git+https://github.com/GrahamDumpleton/mod_wsgi#tag=$pkgver")
 md5sums=('SKIP')
 
 build() {
+  # Configure and build mod_wsgi for py2
   cp -r "$pkgbase" py2
-
-  cd "$pkgbase"
-
+  cd py2
   ./configure \
     --prefix=/usr \
     --with-apxs=/usr/bin/apxs \
-    --with-python=/usr/bin/python
+    --with-python=/usr/bin/python2
 
-  # Build mod_wsgi for py3
-  make LDLIBS="$(pkg-config python3 --libs) -lpthread -ldl -lutil -lm"
+  make
 
-  cd "$srcdir/py2"
-
+  # Configure and build mod_wsgi for py3
+  cd "$srcdir/$pkgbase"
   ./configure \
     --prefix=/usr \
     --with-apxs=/usr/bin/apxs \
-    --with-python=/usr/bin/python2
+    --with-python=/usr/bin/python
 
-  # Build mod_wsgi for py2
-  make
+  make LDLIBS="$(pkg-config python3 --libs) -lpthread -ldl -lutil -lm"
 }
 
 package_mod_wsgi() {
@@ -56,4 +53,5 @@
   make -C py2 DESTDIR="$pkgdir" install
 }
 
+# getver: github.com/GrahamDumpleton/mod_wsgi
 # vim: ts=2 sw=2 et:

Modified: mod_wsgi.install
===================================================================
--- mod_wsgi.install	2017-11-01 11:16:12 UTC (rev 264993)
+++ mod_wsgi.install	2017-11-01 11:18:27 UTC (rev 264994)
@@ -1,5 +1,5 @@
 post_install() {
-/bin/cat << ENDOFMESSAGE
+  /bin/cat << dog
 ==>
 ==>
 ==>  To install mod_wsgi, add the following line in 
@@ -10,5 +10,5 @@
 ==>  and restart/reload Apache.
 ==>
 ==>
-ENDOFMESSAGE
+dog
 }


More information about the arch-commits mailing list