From 8df002a49cb175c8a06ddc302bc1a195f6a3ed0e Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Wed, 2 Feb 2022 19:52:31 +0100 Subject: [PATCH] git subrepo clone --branch=master https://aur.archlinux.org/zinnia.git subrepo: subdir: "zinnia" merged: "215fc9b" upstream: origin: "https://aur.archlinux.org/zinnia.git" branch: "master" commit: "215fc9b" git-subrepo: version: "0.4.3" origin: "???" commit: "???" --- zinnia/.SRCINFO | 12 ++++++++++++ zinnia/.gitrepo | 12 ++++++++++++ zinnia/PKGBUILD | 25 +++++++++++++++++++++++++ zinnia/zinnia-gcc6.patch | 21 +++++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 zinnia/.SRCINFO create mode 100644 zinnia/.gitrepo create mode 100644 zinnia/PKGBUILD create mode 100644 zinnia/zinnia-gcc6.patch diff --git a/zinnia/.SRCINFO b/zinnia/.SRCINFO new file mode 100644 index 0000000..7f5bf0f --- /dev/null +++ b/zinnia/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = zinnia + pkgdesc = Simple, customizable and portable online hand recognition system based on Support Vector Machines + pkgver = 0.07 + pkgrel = 1 + url = https://github.com/silverhikari/zinnia + arch = x86_64 + license = BSD + depends = gcc-libs + source = https://github.com/silverhikari/zinnia/releases/download/0.07/zinnia-0.07.tar.gz + sha256sums = a1f537b67ac37319740d747a5eb101f0a327b0c483aecf8030c32eb3a133b07f + +pkgname = zinnia diff --git a/zinnia/.gitrepo b/zinnia/.gitrepo new file mode 100644 index 0000000..8e278fb --- /dev/null +++ b/zinnia/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/zinnia.git + branch = master + commit = 215fc9b564f15bb4687a8a00fcafa2cfa3161fc5 + parent = dc84a68b754757fdd56dd7a2225ee1434fa845d4 + method = merge + cmdver = 0.4.3 diff --git a/zinnia/PKGBUILD b/zinnia/PKGBUILD new file mode 100644 index 0000000..e2937c7 --- /dev/null +++ b/zinnia/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer : silverhikari +# Contributor: Felix Yan +# Contributor: Humbert Julien + +pkgname=zinnia +pkgver=0.07 +pkgrel=1 +pkgdesc="Simple, customizable and portable online hand recognition system based on Support Vector Machines" +arch=('x86_64') +url="https://github.com/silverhikari/zinnia" +license=('BSD') +depends=('gcc-libs') +source=("https://github.com/silverhikari/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('a1f537b67ac37319740d747a5eb101f0a327b0c483aecf8030c32eb3a133b07f') +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" +} diff --git a/zinnia/zinnia-gcc6.patch b/zinnia/zinnia-gcc6.patch new file mode 100644 index 0000000..399fe9f --- /dev/null +++ b/zinnia/zinnia-gcc6.patch @@ -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(y, fn)); ++ x_.push_back(std::make_pair(y, fn)); + return true; + } + +