From 7767dbd04e2cfd7b778a75538d9c9faaea75443f Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Wed, 30 Mar 2016 11:10:53 +0300 Subject: [PATCH] sqlcipher and skrooge:first release --- desktop/kde/application/skrooge/actions.py | 20 +++ .../skrooge/files/skrooge-gcc-fix.patch | 63 +++++++++ desktop/kde/application/skrooge/pspec.xml | 128 ++++++++++++++++++ .../kde/application/skrooge/translations.xml | 8 ++ server/database/sqlcipher/actions.py | 33 +++++ server/database/sqlcipher/pspec.xml | 62 +++++++++ 6 files changed, 314 insertions(+) create mode 100644 desktop/kde/application/skrooge/actions.py create mode 100644 desktop/kde/application/skrooge/files/skrooge-gcc-fix.patch create mode 100644 desktop/kde/application/skrooge/pspec.xml create mode 100644 desktop/kde/application/skrooge/translations.xml create mode 100644 server/database/sqlcipher/actions.py create mode 100644 server/database/sqlcipher/pspec.xml diff --git a/desktop/kde/application/skrooge/actions.py b/desktop/kde/application/skrooge/actions.py new file mode 100644 index 0000000000..2c2b0ad4ac --- /dev/null +++ b/desktop/kde/application/skrooge/actions.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import kde5 +from pisi.actionsapi import pisitools + +def setup(): + kde5.configure() + +def build(): + kde5.make() + +def install(): + kde5.install() + + pisitools.dodoc("AUTHORS", "CHANGELOG", "COPYING", "README", "TODO") + diff --git a/desktop/kde/application/skrooge/files/skrooge-gcc-fix.patch b/desktop/kde/application/skrooge/files/skrooge-gcc-fix.patch new file mode 100644 index 0000000000..62d762c993 --- /dev/null +++ b/desktop/kde/application/skrooge/files/skrooge-gcc-fix.patch @@ -0,0 +1,63 @@ +--- a/skgbasemodeler/skgdocument.cpp ++++ b/skgbasemodeler/skgdocument.cpp +@@ -42,7 +42,6 @@ + #include + + #include +-#include + #include + + #include "skgtraces.h" +@@ -51,11 +50,6 @@ + #include "skgpropertyobject.h" + #include "skgtransactionmng.h" + #include "skgreport.h" +- +-#ifdef Q_OS_WIN +-#define isnan(a) _isnan(a) +-#define isinf(a) !_finite(a) +-#endif + + #ifdef SKGCIPHER + #define SQLDRIVERNAME QStringLiteral("SKGSQLCIPHER") +@@ -2693,7 +2687,7 @@ + if (iValue > 0) { + p = '+' % p; + } +- if (p.count() > 10 || isnan(iValue) || isinf(iValue)) { ++ if (p.count() > 10 || std::isnan(iValue) || std::isinf(iValue)) { + p = QChar(8734); + } + return " + #include +-#include + #include + + #include "skgtraces.h" +@@ -36,11 +35,6 @@ + #include "skgobjectbase.h" + #include "skgpayeeobject.h" + #include "skgimportexportmanager.h" +- +-#ifdef Q_OS_WIN +-#define isnan(a) _isnan(a) +-#define isinf(a) !_finite(a) +-#endif + + /** + * This plugin factory. +@@ -386,7 +380,7 @@ + } + } + +- if (!isnan(info.value)) { ++ if (!std::isnan(info.value)) { + QChar accountType = mapIdType[info.account.text()]; + if (accountType == 'C') { + suboperationsList.push_front(info); diff --git a/desktop/kde/application/skrooge/pspec.xml b/desktop/kde/application/skrooge/pspec.xml new file mode 100644 index 0000000000..5b9adbcead --- /dev/null +++ b/desktop/kde/application/skrooge/pspec.xml @@ -0,0 +1,128 @@ + + + + + skrooge + http://skrooge.org + + PisiLinux Community + admins@pisilinux.org + + GPLv3 + skrooge + app:gui + Personal finances manager + Skrooge allows you to manage your personal finances, powered by KDE. Thanks to its many features, it is one of the most powerful way to enter, follow, and analyze your expenses. + http://download.kde.org/stable/skrooge/skrooge-2.3.0.tar.xz + + qt5-base-devel + extra-cmake-modules + qt5-webkit-devel + qt5-script-devel + qt5-sql-mysql + qt5-sql-odbc + qt5-sql-postgresql + qt5-sql-sqlite + qt5-designer-devel + qt5-svg-devel + qt5-location-devel + grantlee-qt5-devel + karchive-devel + kconfig-devel + kcoreaddons-devel + ki18n-devel + kitemviews-devel + kwidgetsaddons-devel + kwindowsystem-devel + kcompletion-devel + kdoctools-devel + kjobwidgets-devel + kconfigwidgets-devel + kdesignerplugin + kiconthemes-devel + kio-devel + knewstuff-devel + kparts-devel + kwallet-devel + kxmlgui-devel + sqlcipher-devel + qca2-qt5-devel + kdelibs4-support-devel + kemoticons-devel + kitemmodels-devel + kinit-devel + kunitconversion-devel + kactivities-devel + knotifyconfig-devel + krunner-devel + libofx-devel + + + skrooge-gcc-fix.patch + + + + + skrooge + + kio + ki18n + kparts + libgcc + libofx + kconfig + krunner + kwallet + kxmlgui + qt5-svg + karchive + kservice + qca2-qt5 + qt5-base + knewstuff + sqlcipher + kitemviews + qt5-script + qt5-webkit + kcompletion + kcoreaddons + kdbusaddons + kiconthemes + grantlee-qt5 + ktextwidgets + knotifyconfig + kconfigwidgets + knotifications + kwidgetsaddons + qt5-declarative + kdelibs4-support + + + /etc/xdg + /usr/bin + /usr/lib + /usr/share/appdata + /usr/share/applications + /usr/share/config.kcfg + /usr/share/doc + /usr/share/icons + /usr/share/knotifications5 + /usr/share/kservices5 + /usr/share/kservicetypes5 + /usr/share/kxmlgui5 + /usr/share/locale + /usr/share/mime + /usr/share/skrooge + + + + + + 2016-03-22 + 2.3.0 + First release + Alihan Öztürk + alihan@pisilinux.org + + + diff --git a/desktop/kde/application/skrooge/translations.xml b/desktop/kde/application/skrooge/translations.xml new file mode 100644 index 0000000000..71362b2405 --- /dev/null +++ b/desktop/kde/application/skrooge/translations.xml @@ -0,0 +1,8 @@ + + + + skrooge + Kişisel finansal yönetici + Skrooge, kişisel finans akışınızı kontrol altında tutmanızı sağlayan bir uygulamadır. + + diff --git a/server/database/sqlcipher/actions.py b/server/database/sqlcipher/actions.py new file mode 100644 index 0000000000..47433338f2 --- /dev/null +++ b/server/database/sqlcipher/actions.py @@ -0,0 +1,33 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import shelltools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + shelltools.export("CFLAGS", "%s -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2" % get.CFLAGS()) + shelltools.export("LDFLAGS", "%s -lcrypto" % get.LDFLAGS()) + autotools.configure("--prefix=/usr \ + --enable-tempstore=yes \ + --enable-readline \ + --enable-threadsafe \ + --enable-cross-thread-connections \ + --enable-releasemode \ + --disable-static \ + --with-crypto-lib") + + #for unused + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("CHANGELOG*", "README*", "VERSION", "LICENSE") diff --git a/server/database/sqlcipher/pspec.xml b/server/database/sqlcipher/pspec.xml new file mode 100644 index 0000000000..8ad3b98903 --- /dev/null +++ b/server/database/sqlcipher/pspec.xml @@ -0,0 +1,62 @@ + + + sqlcipher + https://www.zetetic.net/sqlcipher/ + + Alihan Öztürk + alihan@pisilinux.org + + BSD + data + SQLite extension that provides transparent 256-bit AES encryption of database files + SQLCipher is an SQLite extension that provides transparent 256-bit AES encryption of database files. Pages are encrypted before being written to disk and are decrypted when read back. Due to the small footprint and great performance it’s ideal for protecting embedded application databases and is well suited for mobile development. + + readline-devel + tcl-devel + openssl-devel + sqlite-devel + ncurses-devel + + https://github.com/sqlcipher/sqlcipher/archive/v3.3.1.tar.gz + + + + sqlcipher + SQLite extension that provides transparent 256-bit AES encryption of database files. + + openssl + readline + sqlite + tcl + ncurses + + + /usr/bin + /usr/lib/tcl8.6 + /usr/lib/lib* + /usr/share/doc + + + + + sqlcipher-devel + Development files for sqlcipher. + + sqlcipher + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2016-03-22 + 3.3.1 + First release. + Alihan Öztürk + alihan@pisilinux.org + + +