[arch-commits] Commit in notcurses/repos/community-testing-x86_64 (PKGBUILD)

Santiago Torres-Arias sangy at gemini.archlinux.org
Sat Nov 27 17:47:37 UTC 2021


    Date: Saturday, November 27, 2021 @ 17:47:37
  Author: sangy
Revision: 1055085

archrelease: copy trunk to community-testing-x86_64

Added:
  notcurses/repos/community-testing-x86_64/PKGBUILD
    (from rev 1055084, notcurses/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: notcurses/repos/community-testing-x86_64/PKGBUILD (from rev 1055084, notcurses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-27 17:47:37 UTC (rev 1055085)
@@ -0,0 +1,42 @@
+# Maintainer: Santiago Torres-Arias <santiago -> a.o >
+# Maintainer: Nick Black <dankamongmen at gmail.com>
+
+pkgname=notcurses
+pkgver=2.4.9
+pkgrel=2
+pkgdesc="Blingful TUI/character graphics library"
+url="https://nick-black.com/dankwiki/index.php/Notcurses"
+license=('Apache')
+arch=('x86_64')
+# qrcodegen is currently shipped as a static archive on Arch, rather than a
+# dynamic library. Should the .so be shipped in the future, promote qrcodegen
+# from a makedepends to a true depends, and use that dynamic library.
+depends=('ncurses' 'ffmpeg' 'libunistring')
+makedepends=('cmake' 'pandoc' 'python-pip' 'python-pypandoc' 'python-cffi' 'python-setuptools' 'readline' 'ninja' 'zlib' 'gpm')
+checkdepends=('doctest')
+source=("https://github.com/dankamongmen/notcurses/archive/v${pkgver}.tar.gz")
+sha256sums=('a2771ad1633e0158f8273fa8b30b5bce0f12e1205e863045f4ae186b6b52f537')
+
+prepare() {
+  mkdir -p "${pkgname}-${pkgver}/build"
+  cd "${pkgname}-${pkgver}/build"
+  cmake .. -GNinja -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_QRCODEGEN=off -DUSE_GPM=on
+}
+
+build() {
+  cd "${pkgname}-${pkgver}/build"
+  ninja
+}
+
+check() {
+  cd "${pkgname}-${pkgver}/build"
+  ninja test 
+}
+
+package() {
+  cd "${pkgname}-${pkgver}/build"
+  DESTDIR="$pkgdir" ninja install
+  cd ../cffi
+  env CFLAGS="-I$pkgdir/usr/include -L../build" python setup.py install --root="$pkgdir" --optimize=1
+}
+



More information about the arch-commits mailing list