summaryrefslogtreecommitdiff
path: root/community/python-pmw
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-03 03:19:39 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-03 03:19:39 +0000
commitf72cb0ced39aca827b5269eba5455dbf846410e2 (patch)
tree7047d64bf11194dc5e44ed4f6765ffccb11676cf /community/python-pmw
parent3cbc40e327b77b23d48f55c76c0efde35a5dad16 (diff)
Fri Jan 3 03:17:00 UTC 2014
Diffstat (limited to 'community/python-pmw')
-rw-r--r--community/python-pmw/PKGBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/community/python-pmw/PKGBUILD b/community/python-pmw/PKGBUILD
index dd43ef0b5..1e19d7f2b 100644
--- a/community/python-pmw/PKGBUILD
+++ b/community/python-pmw/PKGBUILD
@@ -1,3 +1,4 @@
+# $Id: PKGBUILD 103272 2014-01-02 00:34:07Z arcanis $
# Maintainer: Evgeniy Alekseev <arcanis dot arch at gmail dot com>
# Contributor: kfgz <kfgz at interia pl>
# Contributor: Michael Krauss <hippodriver at gmx dot net>
@@ -5,7 +6,7 @@
pkgname=python-pmw
pkgver=1.3.3b
-pkgrel=2
+pkgrel=3
pkgdesc="A toolkit for high-level compound widgets in Python using the Tkinter module"
arch=('i686' 'x86_64')
url="http://pmw.sourceforge.net/doc/index.html"
@@ -16,16 +17,17 @@ source=(${pkgname}-${pkgver}.tar.gz::http://sourceforge.net/projects/pmw/files/P
md5sums=('d8b998b921584db32a5eeeddc6bc606c'
'28b047a148c1780eddcf4bed6b150123')
+prepare() {
+ # change python to python2
+ sed -i "s|python|python2|g" "${srcdir}/Pmw/Pmw/Pmw_1_3_3/tests/ManualTests.py"
+ sed -i "s|python|python2|g" "${srcdir}/Pmw/Pmw/Pmw_1_3_3/demos/All.py"
+ sed -i "s|python|python2|g" "${srcdir}/Pmw/Pmw/Pmw_1_3_3/tests/All.py"
+ sed -i "s|python|python2|g" "${srcdir}/Pmw/Pmw/Pmw_1_3_3/bin/bundlepmw.py"
+}
+
package() {
cd "Pmw"
python2 setup.py build
python2 setup.py install --prefix=/usr --root="${pkgdir}"
-
- # change python to python2
- sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/Pmw/Pmw_1_3_3/tests/ManualTests.py"
- sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/Pmw/Pmw_1_3_3/demos/All.py"
- sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/Pmw/Pmw_1_3_3/tests/All.py"
- sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/Pmw/Pmw_1_3_3/bin/bundlepmw.py"
-
install -D -m644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}