[arch-commits] Commit in twisted/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Aug 10 03:49:47 UTC 2015
Date: Monday, August 10, 2015 @ 05:49:47
Author: fyan
Revision: 243134
upgpkg: twisted 15.3.0-1
Modified:
twisted/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-08-09 08:45:51 UTC (rev 243133)
+++ PKGBUILD 2015-08-10 03:49:47 UTC (rev 243134)
@@ -6,7 +6,7 @@
pkgbase=twisted
pkgname=(python-twisted python2-twisted)
-pkgver=15.2.1
+pkgver=15.3.0
pkgrel=1
pkgdesc="Asynchronous networking framework written in Python"
arch=('i686' 'x86_64')
@@ -15,7 +15,7 @@
makedepends=('python-crypto' 'python2-crypto' 'python-zope-interface' 'python2-zope-interface'
'python-setuptools' 'python2-setuptools' 'python-service-identity' 'python2-service-identity')
source=("http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2")
-sha1sums=('c24b07daa5ff505ee499ec760cf4e1213112bd8f')
+sha1sums=('1932cc62ac038cce1624f3aa1c893bd83afe0f32')
prepare() {
cp -a "Twisted-$pkgver"{,-py2}
@@ -37,10 +37,10 @@
check() {
cd "$srcdir/Twisted-$pkgver"
- # python bin/trial twisted
+ # LC_CTYPE=en_US.utf8 python bin/trial twisted
cd "$srcdir/Twisted-$pkgver-py2"
- python2 bin/trial twisted || warning "Tests failed"
+ LC_CTYPE=en_US.utf8 python2 bin/trial twisted || warning "Tests failed"
}
package_python-twisted() {
@@ -52,6 +52,11 @@
cd "Twisted-$pkgver"
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ # Wrong path, wrong!
+ cp -a "$pkgdir"/usr/twisted/* "$pkgdir"/usr/lib/python3.4/site-packages/twisted/
+ rm -r "$pkgdir"/usr/twisted
+
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list