summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD31
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38cb3ef3dfe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python2-pmw
+ pkgdesc = A toolkit for high-level compound widgets in Python using the Tkinter module
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = http://pmw.sourceforge.net/
+ arch = any
+ license = MIT
+ depends = python2
+ depends = tk
+ source = python2-pmw-2.0.1.tar.gz::https://pypi.python.org/packages/source/P/Pmw/Pmw-2.0.1.tar.gz
+ md5sums = 8080b0fabc731ff236f97e88e13b3938
+
+pkgname = python2-pmw
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c71e6a322f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+
+pkgname=python2-pmw
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="A toolkit for high-level compound widgets in Python using the Tkinter module"
+arch=('any')
+url="http://pmw.sourceforge.net/"
+license=('MIT')
+depends=('python2' 'tk')
+source=("${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/source/P/Pmw/Pmw-${pkgver}.tar.gz")
+md5sums=('8080b0fabc731ff236f97e88e13b3938')
+
+prepare() {
+ cd "${srcdir}/Pmw-${pkgver}"
+
+ find . -name '*.py' -exec \
+ sed -i "s|python|python2|g" {} \;
+}
+
+build() {
+ cd "${srcdir}/Pmw-${pkgver}"
+
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/Pmw-${pkgver}"
+
+ python2 setup.py install --prefix=/usr --root="${pkgdir}"
+}