Package Details: zinnia-python 0.06-1

Git Clone URL: https://aur.archlinux.org/zinnia-python.git (read-only, click to copy)
Package Base: zinnia-python
Description: Simple, customizable and portable online hand recognition system based on Support Vector Machines, Python bindings
Upstream URL: http://zinnia.sourceforge.net/
Keywords: handwriting python zinnia
Licenses: BSD
Submitter: julroy67
Maintainer: yhfudev
Last Packager: davidbailey00
Votes: 14
Popularity: 0.000000
First Submitted: 2010-04-28 13:08 (UTC)
Last Updated: 2015-07-26 10:38 (UTC)

Latest Comments

LiteracyFanatic commented on 2020-05-04 00:39 (UTC)

I have a patch which runs swig to generate bindings that are compatible with Python 3. I thought I'd post it here in case you'd like to apply it. If not, I will just create a new package and upload it to the AUR.

From 9654b396bc7b01bd0806ddc70f16e3cc6f40cc74 Mon Sep 17 00:00:00 2001
From: Jordan Cannon <LiteracyFanatic@gmail.com>
Date: Sun, 3 May 2020 19:28:50 -0500
Subject: [PATCH] Use Python 3

---
 .SRCINFO |  7 ++++---
 PKGBUILD | 12 +++++++-----
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index cb07fe3..4c01bf2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
 pkgbase = zinnia-python
    pkgdesc = Simple, customizable and portable online hand recognition system based on Support Vector Machines, Python bindings
    pkgver = 0.06
-   pkgrel = 1
+   pkgrel = 2
    url = http://zinnia.sourceforge.net/
    arch = i686
    arch = x86_64
    license = BSD
-   makedepends = python2
-   depends = python2
+   makedepends = python
+   makedepends = swig
+   depends = python
    depends = zinnia>=0.06
    options = !emptydirs
    source = http://downloads.sourceforge.net/project/zinnia/zinnia/0.06/zinnia-0.06.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 5230d4d..239a54b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,24 +2,26 @@

 pkgname=zinnia-python
 pkgver=0.06
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple, customizable and portable online hand recognition system based on Support Vector Machines, Python bindings"
 arch=('i686' 'x86_64')
 url="http://zinnia.sourceforge.net/"
 license=('BSD')
-depends=('python2' 'zinnia>=0.06')
-makedepends=('python2')
+depends=('python' 'zinnia>=0.06')
+makedepends=('python' 'swig')
 options=(!emptydirs)
 source=("http://downloads.sourceforge.net/project/zinnia/zinnia/$pkgver/zinnia-$pkgver.tar.gz")
 sha256sums=('ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b')

 build() {
+  cd "$srcdir/zinnia-$pkgver/swig"
+  make python
   cd "$srcdir/zinnia-$pkgver/python"
-  python2 setup.py build
+  python setup.py build
 }

 package() {
   cd "$srcdir/zinnia-$pkgver/python"
-  python2 setup.py install --prefix=$pkgdir/usr --optimize=1
+  python setup.py install --prefix=$pkgdir/usr --optimize=1
   install -D -m644 $srcdir/zinnia-$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
-- 
2.26.2