From cc769d5fb397b61b2efe8a9c23da82c89bb07f3f Mon Sep 17 00:00:00 2001 From: mobinmob Date: Tue, 17 Nov 2020 16:53:28 +0200 Subject: [PATCH 1/4] New package: nocurses-2.0.4. --- common/shlibs | 2 ++ srcpkgs/notcurses-devel | 1 + srcpkgs/notcurses-progs | 1 + srcpkgs/notcurses/template | 40 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 120000 srcpkgs/notcurses-devel create mode 120000 srcpkgs/notcurses-progs create mode 100644 srcpkgs/notcurses/template diff --git a/common/shlibs b/common/shlibs index 5e274cc8d8d..1289beb197b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3991,3 +3991,5 @@ liburing.so.1 liburing-0.7_1 libbson-1.0.so.0 libbson-1.17.0_1 libsonic.so.0 libsonic-0.2.0_1 libtickit.so.3 libtickit-0.4.1_1 +libnotcurses.so.2 notcurses-2.0.4_1 +libnotcurses++.so.2 notcurses-2.0.4_1 diff --git a/srcpkgs/notcurses-devel b/srcpkgs/notcurses-devel new file mode 120000 index 00000000000..609dfe4d9c5 --- /dev/null +++ b/srcpkgs/notcurses-devel @@ -0,0 +1 @@ +notcurses \ No newline at end of file diff --git a/srcpkgs/notcurses-progs b/srcpkgs/notcurses-progs new file mode 120000 index 00000000000..609dfe4d9c5 --- /dev/null +++ b/srcpkgs/notcurses-progs @@ -0,0 +1 @@ +notcurses \ No newline at end of file diff --git a/srcpkgs/notcurses/template b/srcpkgs/notcurses/template new file mode 100644 index 00000000000..bb2d9419da8 --- /dev/null +++ b/srcpkgs/notcurses/template @@ -0,0 +1,40 @@ +# Template file for 'notcurses' +pkgname=notcurses +version=2.0.4 +revision=1 +build_style=cmake +configure_args="-DUSE_STATIC=ON" +hostmakedepends="pkg-config pandoc" +makedepends="libunistring-devel ffmpeg-devel ncurses-libtinfo-devel qrcodegen-devel doctest-devel" +depends="ncurses-base" +short_desc="Blingful character graphics/TUI library" +maintainer="mobinmob " +license="Apache-2.0" +homepage="https://nick-black.com/dankwiki/index.php/Notcurses" +changelog="https://raw.githubusercontent.com/dankamongmen/notcurses/master/NEWS.md" +distfiles="https://github.com/dankamongmen/notcurses/archive/v${version}.tar.gz" +checksum=6bb38ca0affc6425cd8e248c5b81aa4281713362c45202a450a89ab751833c98 + +notcurses-devel_package() { + depends="notcurses-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove /usr/lib/cmake + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/share/doc + vmove usr/share/man/man3 + } +} + +notcurses-progs_package() { + depends="notcurses-${version}_${revision}" + short_desc+=" - programs" + pkg_install() { + vmove usr/bin + vmove usr/share/notcurses + vmove usr/share/man/man1 + } +} From f90dd99b13e8734fb80162c619b1a763c1bb07a3 Mon Sep 17 00:00:00 2001 From: mobinmob Date: Tue, 17 Nov 2020 16:54:10 +0200 Subject: [PATCH 2/4] New package: growlight-1.2.18. --- srcpkgs/growlight/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/growlight/template diff --git a/srcpkgs/growlight/template b/srcpkgs/growlight/template new file mode 100644 index 00000000000..65e5f69d52a --- /dev/null +++ b/srcpkgs/growlight/template @@ -0,0 +1,16 @@ +# Template file for 'growlight' +pkgname=growlight +version=1.2.18 +revision=1 +build_style=cmake +hostmakedepends="pkg-config pandoc" +makedepends="libatasmart-devel libblkid-devel libcap-devel cryptsetup-devel + nettle-devel notcurses-devel libpciaccess-devel eudev-libudev-devel zlib-devel + device-mapper-devel pciutils-devel zfs-devel" +depends="ntfs-3g jfsutils xfsprogs nvme-cli hdparm f2fs-tools btrfs-progs e2fsprogs" +short_desc="Block device manager and system installation tool" +maintainer="mobinmob " +license="GPL-3.0-or-later" +homepage="https://nick-black.com/dankwiki/index.php/Growlight" +distfiles="https://github.com/dankamongmen/growlight/archive/v${version}.tar.gz" +checksum=c6c08556e6838226b81300e177c49d7a382e9eb30cfdb19f99790106e426a032 From d179df8e19c31943fa63899c37f8e695fd9a00b1 Mon Sep 17 00:00:00 2001 From: mobinmob Date: Tue, 17 Nov 2020 16:54:48 +0200 Subject: [PATCH 3/4] New package: doctest-2.4.1. --- srcpkgs/doctest-devel | 1 + srcpkgs/doctest/template | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 120000 srcpkgs/doctest-devel create mode 100644 srcpkgs/doctest/template diff --git a/srcpkgs/doctest-devel b/srcpkgs/doctest-devel new file mode 120000 index 00000000000..79086729892 --- /dev/null +++ b/srcpkgs/doctest-devel @@ -0,0 +1 @@ +doctest \ No newline at end of file diff --git a/srcpkgs/doctest/template b/srcpkgs/doctest/template new file mode 100644 index 00000000000..eeb20eab623 --- /dev/null +++ b/srcpkgs/doctest/template @@ -0,0 +1,25 @@ +# Template file for 'doctest' +pkgname=doctest +version=2.4.1 +revision=1 +build_style=cmake +short_desc="Doctest C++ testing framework" +maintainer="mobinmob " +license="MIT" +homepage="https://github.com/onqtam/doctest/blob/master/doc/markdown/readme.md#reference" +changelog="https://raw.githubusercontent.com/onqtam/doctest/master/CHANGELOG.md" +distfiles="https://github.com/onqtam/doctest/archive/${version}.tar.gz" +checksum=0a0f0be21ee23e36ff6b8b9d63c06a7792e04cce342e1df3dee0e40d1e21b9f0 + +post_install() { + vlicense LICENSE.txt +} + +doctest-devel_package() { + depends="doctest-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + } +} From 76b77debcf1d8c3dfd09d29cd0dc2bae70f50f39 Mon Sep 17 00:00:00 2001 From: mobinmob Date: Tue, 17 Nov 2020 16:55:19 +0200 Subject: [PATCH 4/4] qrcodegen: enable C library build. --- srcpkgs/qrcodegen/template | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/srcpkgs/qrcodegen/template b/srcpkgs/qrcodegen/template index 53627a2b98f..d181e9cdb52 100644 --- a/srcpkgs/qrcodegen/template +++ b/srcpkgs/qrcodegen/template @@ -1,10 +1,8 @@ # Template file for 'qrcodegen' pkgname=qrcodegen version=1.6.0 -revision=2 +revision=3 wrksrc="QR-Code-generator-${version}" -build_wrksrc="cpp" -build_style=gnu-makefile short_desc="QR Code generator library" maintainer="Jürgen Buchmüller " license="MIT" @@ -14,11 +12,20 @@ checksum=8acee5a77325e075b910747ad4b1fdb1491b7e22d0b8f1b5a6ea15ea08ba33a8 CXXFLAGS="-fPIC" +do_build() { + for dir in c cpp + do + cd $dir && make && cd .. + done +} + do_install() { - sed -n "/^License/,/xxxx/p" ../Readme.markdown > LICENSE + sed -n "/^License/,/xxxx/p" Readme.markdown > LICENSE vlicense LICENSE - vinstall QrCode.hpp 644 usr/include/qrcodegen - vinstall libqrcodegen.a 644 usr/lib libqrcodegencpp.a + vinstall cpp/QrCode.hpp 644 usr/include/qrcodegen + vinstall cpp/libqrcodegen.a 644 usr/lib libqrcodegencpp.a + vinstall c/qrcodegen.h 644 usr/include/qrcodegen + vinstall c/libqrcodegen.a 644 usr/lib } qrcodegen-devel_package() {