From 837fe93c85dd8dc4921e0c8b291d528f56898fe4 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 13 Dec 2022 10:03:18 -0500 Subject: [PATCH] New package: boinctui-2.7.0 --- srcpkgs/boinctui/patches/uint.patch | 44 +++++++++++++++++++++++++++++ srcpkgs/boinctui/template | 18 ++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 srcpkgs/boinctui/patches/uint.patch create mode 100644 srcpkgs/boinctui/template diff --git a/srcpkgs/boinctui/patches/uint.patch b/srcpkgs/boinctui/patches/uint.patch new file mode 100644 index 000000000000..92e6f7c01f17 --- /dev/null +++ b/srcpkgs/boinctui/patches/uint.patch @@ -0,0 +1,44 @@ +diff --git a/src/resultparse.cpp b/src/resultparse.cpp +index ae00b32..d4f0440 100644 +--- a/src/resultparse.cpp ++++ b/src/resultparse.cpp +@@ -123,7 +123,7 @@ void callbackData(void *userdata, const char *content, int len) + //kLogPrintf("\ncallbackData()-->[%s]<-- len=%d\n",tmp,len); + //заносим значение в текущий эл-т + bool empty = true; +- for (uint i = 0; i < strlen(tmp); i++) ++ for (unsigned int i = 0; i < strlen(tmp); i++) + { + if (tmp[i] != ' ') + { +diff --git a/src/topmenu.cpp b/src/topmenu.cpp +index 4277d26..fcb3eb8 100644 +--- a/src/topmenu.cpp ++++ b/src/topmenu.cpp +@@ -502,7 +502,7 @@ ProjectsSubMenu::ProjectsSubMenu(NRect rect, Srv* srv) : NMenu(rect) + if (client_state != NULL) + { + std::vector projects = client_state->getItems("project"); +- for (uint i = 0; i < projects.size(); i++) ++ for (unsigned int i = 0; i < projects.size(); i++) + { + Item* project_name = projects[i]->findItem("project_name"); + if (project_name != NULL) +@@ -817,7 +817,7 @@ ProjectAllListSubMenu::ProjectAllListSubMenu(NRect rect, Srv* srv) : NMenu(rect) + if (projects != NULL) + { + std::vector projlist = projects->getItems("project"); +- for (uint i = 0; i < projlist.size(); i++) ++ for (unsigned int i = 0; i < projlist.size(); i++) + { + Item* name = projlist[i]->findItem("name"); + Item* general_area = projlist[i]->findItem("general_area"); +@@ -899,7 +899,7 @@ ProjectAccMgrSubMenu::ProjectAccMgrSubMenu(NRect rect, Srv* srv) : NMenu(rect) + if (projects != NULL) + { + std::vector mgrlist = projects->getItems("account_manager"); +- for (uint i = 0; i < mgrlist.size(); i++) ++ for (unsigned int i = 0; i < mgrlist.size(); i++) + { + Item* name = mgrlist[i]->findItem("name"); + if (name != NULL) diff --git a/srcpkgs/boinctui/template b/srcpkgs/boinctui/template new file mode 100644 index 000000000000..e930eccd105a --- /dev/null +++ b/srcpkgs/boinctui/template @@ -0,0 +1,18 @@ +# Template file for 'boinctui' +pkgname=boinctui +version=2.7.0 +revision=1 +build_style=gnu-configure +configure_args="--without-gnutls" +hostmakedepends="automake" +makedepends="ncurses-devel expat-devel openssl-devel" +short_desc="Curses based fullscreen BOINC manager" +maintainer="Joel Beckmeyer " +license="GPL-3.0-or-later" +homepage="https://sourceforge.net/projects/boinctui/" +distfiles="https://sourceforge.net/projects/boinctui/files/boinctui_${version}.tar.gz" +checksum=22eb46dea8b111e2e16ceb50f2668577216c1563c815b1719b2b680d485d75c9 + +pre_configure() { + autoreconf -vfi +}