summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/pycups/.md5sum3
-rw-r--r--extra/pycups/Pkgfile7
-rw-r--r--extra/pycups/pycups-1.9.49-python-2.5.patch9
3 files changed, 15 insertions, 4 deletions
diff --git a/extra/pycups/.md5sum b/extra/pycups/.md5sum
index 4b48ddd6d..6d89bba56 100644
--- a/extra/pycups/.md5sum
+++ b/extra/pycups/.md5sum
@@ -1 +1,2 @@
-181f413546676e098352860e3ce57465 pycups-1.9.44.tar.bz2
+1f4aced621520b8a02fcff1eb25f504b pycups-1.9.49-python-2.5.patch
+6db9d8bc7f40315bc0b93f210737cc82 pycups-1.9.49.tar.bz2
diff --git a/extra/pycups/Pkgfile b/extra/pycups/Pkgfile
index 71e116812..addd990ff 100644
--- a/extra/pycups/Pkgfile
+++ b/extra/pycups/Pkgfile
@@ -5,12 +5,13 @@
# Depends on: python, libcups
name=pycups
-version=1.9.44
+version=1.9.49
release=1
-source=(http://cyberelk.net/tim/data/pycups/$name-$version.tar.bz2)
-
+source=(http://cyberelk.net/tim/data/pycups/$name-$version.tar.bz2\
+ pycups-1.9.49-python-2.5.patch)
build() {
cd $name-$version
+ patch -Np1 -i ../pycups-1.9.49-python-2.5.patch
make
make DESTDIR=$PKG install
}
diff --git a/extra/pycups/pycups-1.9.49-python-2.5.patch b/extra/pycups/pycups-1.9.49-python-2.5.patch
new file mode 100644
index 000000000..3be7e6339
--- /dev/null
+++ b/extra/pycups/pycups-1.9.49-python-2.5.patch
@@ -0,0 +1,9 @@
+--- pycups-1.9.49/setup.py.orig 2010-04-29 22:54:22.000000000 +0200
++++ pycups-1.9.49/setup.py 2010-04-29 22:55:20.000000000 +0200
+@@ -3,4 +3,5 @@
+ ext_modules=[Extension("cups",
+ ["cupsmodule.c", "cupsconnection.c",
+ "cupsppd.c", "cupsipp.c"],
+- libraries=["cups"])])
++ libraries=["cups"],
++ define_macros=[("VERSION", '"1.9.49"')])])