From 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 27 Dec 2013 23:55:53 +0000 Subject: Fri Dec 27 23:54:04 UTC 2013 --- community/python-pmw/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 community/python-pmw/PKGBUILD (limited to 'community/python-pmw/PKGBUILD') diff --git a/community/python-pmw/PKGBUILD b/community/python-pmw/PKGBUILD new file mode 100644 index 000000000..dd43ef0b5 --- /dev/null +++ b/community/python-pmw/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Evgeniy Alekseev +# Contributor: kfgz +# Contributor: Michael Krauss +# Contributor: dsa + +pkgname=python-pmw +pkgver=1.3.3b +pkgrel=2 +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" +license=('MIT') +depends=('python2' 'tk') +source=(${pkgname}-${pkgver}.tar.gz::http://sourceforge.net/projects/pmw/files/Pmw/Pmw.1.3.3/Pmw_1_3_3b.tar.gz/download + "LICENSE.txt") +md5sums=('d8b998b921584db32a5eeeddc6bc606c' + '28b047a148c1780eddcf4bed6b150123') + +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" +} -- cgit v1.2.3-54-g00ecf