summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorraininja2015-08-23 19:16:55 -0400
committerraininja2015-08-23 19:16:55 -0400
commit315baec037b1d7d88ce93ec8e1255386c3b8ae11 (patch)
tree7a643204cce02449bee99d1c8e0b2aa7f39cd43a
parentb9a4d58922f97cffed0cd43e5208febda8fea005 (diff)
downloadaur-315baec037b1d7d88ce93ec8e1255386c3b8ae11.tar.gz
shebangs and patching
-rw-r--r--PKGBUILD13
-rw-r--r--shebang.patch27
2 files changed, 36 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3b028a6dfa6..b15c9068c0b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: raininja <daniel.mclellan@gmail.com
pkgname=modoboa
pkgver=1.3.4
-pkgrel=1
+pkgrel=2
pkgdesc="Modoboa is a django mail hosting and management platform"
arch=(any)
url="www.modoboa.org"
@@ -11,9 +11,14 @@ optdepends=('python2-virtualenv' 'mysql' 'postgresql' 'sqlite' 'python2-mysql-co
provides=('modoboa')
conflicts=('modoboa-git')
options=(!emptydirs)
-source=(https://pypi.python.org/packages/source/m/$pkgname/$pkgname-$pkgver.tar.gz)
-sha512sums=('9aecea8e0c8282292ba1cc11749956967ceb66332157267338bf08a05ffdc13bfeae64968cffb3df955ee7d73ad25a9370e639c363fe6de4167044de40413e6b')
-
+source=("https://pypi.python.org/packages/source/m/$pkgname/$pkgname-$pkgver.tar.gz"
+ 'shebang.patch')
+sha512sums=('9aecea8e0c8282292ba1cc11749956967ceb66332157267338bf08a05ffdc13bfeae64968cffb3df955ee7d73ad25a9370e639c363fe6de4167044de40413e6b'
+ 'bffd4074211a6468eef8a1e374786af196b27f1140fdc90d77eb2fde626178b0f91aecc7d42c2baaf9e50570bd81b4fa8f724e8e2dd05e5fa70db238e8e77de1')
+prepare() {
+ cd "$srcdir"
+ patch -p0 -i "$srcdir/shebang.patch"
+ }
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1
diff --git a/shebang.patch b/shebang.patch
new file mode 100644
index 00000000000..2f45939293d
--- /dev/null
+++ b/shebang.patch
@@ -0,0 +1,27 @@
+diff -Naur modoboa-1.3.4-pristine/bin/modoboa-admin.py modoboa-1.3.4/bin/modoboa-admin.py
+--- modoboa-1.3.4-pristine/bin/modoboa-admin.py 2015-08-23 18:56:55.496040960 -0400
++++ modoboa-1.3.4/bin/modoboa-admin.py 2015-08-23 18:59:50.938033043 -0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ # coding: utf-8
+
+ from modoboa.core.commands import handle_command_line
+diff -Naur modoboa-1.3.4-pristine/modoboa/lib/u2u_decode.py modoboa-1.3.4/modoboa/lib/u2u_decode.py
+--- modoboa-1.3.4-pristine/modoboa/lib/u2u_decode.py 2015-08-23 18:56:55.545040958 -0400
++++ modoboa-1.3.4/modoboa/lib/u2u_decode.py 2015-08-23 19:02:35.615025612 -0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ # coding: utf-8
+ """
+ u2u_decode.py
+diff -Naur modoboa-1.3.4-pristine/setup.py modoboa-1.3.4/setup.py
+--- modoboa-1.3.4-pristine/setup.py 2015-08-23 18:56:55.549040958 -0400
++++ modoboa-1.3.4/setup.py 2015-08-23 18:58:52.709035671 -0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+ import os