[arch-commits] Commit in pcurses/repos/community-x86_64 (3 files)

David Runge dvzrv at gemini.archlinux.org
Thu Dec 30 12:51:40 UTC 2021


    Date: Thursday, December 30, 2021 @ 12:51:39
  Author: dvzrv
Revision: 1088232

archrelease: copy trunk to community-x86_64

Added:
  pcurses/repos/community-x86_64/PKGBUILD
    (from rev 1088231, pcurses/trunk/PKGBUILD)
  pcurses/repos/community-x86_64/pcurses-5-ncurses_6.3.patch
    (from rev 1088231, pcurses/trunk/pcurses-5-ncurses_6.3.patch)
Deleted:
  pcurses/repos/community-x86_64/PKGBUILD

-----------------------------+
 PKGBUILD                    |   68 ++++++++++++++++++++++++------------------
 pcurses-5-ncurses_6.3.patch |   35 +++++++++++++++++++++
 2 files changed, 74 insertions(+), 29 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-30 12:51:30 UTC (rev 1088231)
+++ PKGBUILD	2021-12-30 12:51:39 UTC (rev 1088232)
@@ -1,29 +0,0 @@
-# Maintainer: schuay <jakob.gruber at gmail.com>
-
-pkgname=pcurses
-pkgver=5
-pkgrel=4
-pkgdesc='A curses package management tool using libalpm'
-arch=('x86_64')
-url="https://github.com/schuay/$pkgname"
-license=('GPL')
-depends=('ncurses' 'pacman')
-makedepends=('boost' 'cmake' 'git')
-source=("git://github.com/schuay/pcurses.git#tag=pcurses-$pkgver")
-md5sums=('SKIP')
-
-build() {
-  rm -rf "$srcdir/$pkgname-build"
-  mkdir "$srcdir/$pkgname-build"
-  cd "$srcdir/$pkgname-build"
-
-  cmake -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$pkgname"
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-build"
-  make DESTDIR="$pkgdir" install
-}
-
-# vim:set ts=2 sw=2 et:

Copied: pcurses/repos/community-x86_64/PKGBUILD (from rev 1088231, pcurses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-30 12:51:39 UTC (rev 1088232)
@@ -0,0 +1,39 @@
+# Maintainer: schuay <jakob.gruber at gmail.com>
+
+pkgname=pcurses
+pkgver=5
+pkgrel=5
+pkgdesc='A curses package management tool using libalpm'
+arch=('x86_64')
+url="https://github.com/schuay/$pkgname"
+license=('GPL2')
+depends=('ncurses' 'pacman')
+makedepends=('boost' 'cmake')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/schuay/pcurses/archive/refs/tags/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}-5-ncurses_6.3.patch"
+)
+sha512sums=('21700041eee3edd73f5321e03a7700abf0cf78b2c22675a7e2076b49a58ba6c77cb66fa0b81297c64347549a459143b803ca82183f0be7d8192406ffc45e2393'
+            'b873fdffd56edd3e506196829327826194cc20be162c266531899a017e3ec801e21a979b3f53799467761fe4ea3c65f5180751ec23582147840b28cc12a37aaa')
+b2sums=('1f0d1abe65713acac4a1ef4d5fa25656b1eb93fc699720f694114f97c3a90b173948a3085d791a1cc00487354290608a1f726b2dbd94f12aa54f0d27d4747c3b'
+        'b4020c24e77bd324603d5b0d5c20368a966f3158711035dc7e70914da8ad97140d3aeb6576174d9c191f4dfc3cb4efd273802a6f98750881a10d771e5d015fa7')
+
+prepare() {
+  cd "${pkgname}-${pkgname}-${pkgver}"
+  patch -Np1 -i ../"${pkgname}-5-ncurses_6.3.patch"
+}
+
+build() {
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=None \
+        -W no-dev \
+        -B build \
+        -S "${pkgname}-${pkgname}-${pkgver}"
+  make VERBOSE=1 -C build
+}
+
+package() {
+  make DESTDIR="$pkgdir" install -C build
+}
+
+# vim:set ts=2 sw=2 et:

Copied: pcurses/repos/community-x86_64/pcurses-5-ncurses_6.3.patch (from rev 1088231, pcurses/trunk/pcurses-5-ncurses_6.3.patch)
===================================================================
--- pcurses-5-ncurses_6.3.patch	                        (rev 0)
+++ pcurses-5-ncurses_6.3.patch	2021-12-30 12:51:39 UTC (rev 1088232)
@@ -0,0 +1,35 @@
+diff --git i/src/cursesframe.cpp w/src/cursesframe.cpp
+index 70c9102..95fc31d 100644
+--- i/src/cursesframe.cpp
++++ w/src/cursesframe.cpp
+@@ -93,10 +93,10 @@ void CursesFrame::refresh()
+ 
+         int headercol = focused ? C_INV : C_DEF;
+         wattron(w_border, A_BOLD | headercol);
+-        mvwprintw(w_border, 0, 1, header.c_str());
++        mvwprintw(w_border, 0, 1, "%s", header.c_str());
+         wattroff(w_border, A_BOLD | headercol);
+ 
+-        mvwprintw(w_border, w_border->_maxy, 1, footer.c_str());
++        mvwprintw(w_border, w_border->_maxy, 1, "%s", footer.c_str());
+ 
+         wnoutrefresh(w_border);
+     }
+@@ -108,7 +108,7 @@ void CursesFrame::printw(string str, int attr)
+     if (attr != 0) {
+         wattron(w_main, attr);
+     }
+-    wprintw(w_main, fitstrtowin(str).c_str());
++    wprintw(w_main, "%s", fitstrtowin(str).c_str());
+     if (attr != 0) {
+         wattroff(w_main, attr);
+     }
+@@ -119,7 +119,7 @@ void CursesFrame::mvprintw(int x, int y, string str, int attr)
+     if (attr != 0) {
+         wattron(w_main, attr);
+     }
+-    mvwprintw(w_main, y, x, fitstrtowin(str, x).c_str());
++    mvwprintw(w_main, y, x, "%s", fitstrtowin(str, x).c_str());
+     if (attr != 0) {
+         wattroff(w_main, attr);
+     }



More information about the arch-commits mailing list