[arch-commits] Commit in zinnia/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 12:41:10 UTC 2020


    Date: Tuesday, July 7, 2020 @ 12:41:10
  Author: felixonmars
Revision: 658187

archrelease: copy trunk to community-staging-x86_64

Added:
  zinnia/repos/community-staging-x86_64/
  zinnia/repos/community-staging-x86_64/PKGBUILD
    (from rev 658185, zinnia/trunk/PKGBUILD)
  zinnia/repos/community-staging-x86_64/zinnia-gcc6.patch
    (from rev 658185, zinnia/trunk/zinnia-gcc6.patch)

-------------------+
 PKGBUILD          |   34 ++++++++++++++++++++++++++++++++++
 zinnia-gcc6.patch |   21 +++++++++++++++++++++
 2 files changed, 55 insertions(+)

Copied: zinnia/repos/community-staging-x86_64/PKGBUILD (from rev 658185, zinnia/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 12:41:10 UTC (rev 658187)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Humbert Julien <julroy67 [AT] gmail.com>
+
+pkgname=zinnia
+pkgver=0.06
+pkgrel=6
+pkgdesc="Simple, customizable and portable online hand recognition system based on Support Vector Machines"
+arch=('x86_64')
+url="http://zinnia.sourceforge.net/"
+license=('BSD')
+depends=('gcc-libs')
+source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
+        zinnia-gcc6.patch)
+sha256sums=('ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b'
+            'f27cc4bd687d4c66525f744315c53caa537f1998dd546ffba9ef337e033854e6')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../zinnia-gcc6.patch # Fix build with GCC 6 (Debian)
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "$srcdir/$pkgname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: zinnia/repos/community-staging-x86_64/zinnia-gcc6.patch (from rev 658185, zinnia/trunk/zinnia-gcc6.patch)
===================================================================
--- community-staging-x86_64/zinnia-gcc6.patch	                        (rev 0)
+++ community-staging-x86_64/zinnia-gcc6.patch	2020-07-07 12:41:10 UTC (rev 658187)
@@ -0,0 +1,21 @@
+--- a/trainer.cpp
++++ b/trainer.cpp
+@@ -93,7 +93,7 @@ class TrainerImpl: public Trainer {
+ 
+  public:
+   bool add(const Character &character) {
+-    const std::string y = character.value();
++    std::string y = character.value();
+     CHECK_FALSE(!y.empty()) << "input character is empty";
+     Features features;
+     CHECK_FALSE(features.read(character)) << "cannot read character: " << y;
+@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer {
+     if (!fn) {
+       return false;
+     }
+-    x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
++    x_.push_back(std::make_pair(y, fn));
+     return true;
+   }
+ 
+



More information about the arch-commits mailing list