From 440dc308cd303346d7372d0a7f790af7283baad7 Mon Sep 17 00:00:00 2001 From: travankor Date: Sun, 16 Sep 2018 17:29:09 -0700 Subject: [PATCH] New package: qimgv-0.7. --- srcpkgs/qimgv/patches/fix-musl.patch | 13 +++++++++++++ srcpkgs/qimgv/template | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/qimgv/patches/fix-musl.patch create mode 100644 srcpkgs/qimgv/template diff --git a/srcpkgs/qimgv/patches/fix-musl.patch b/srcpkgs/qimgv/patches/fix-musl.patch new file mode 100644 index 00000000000..fb49b5a0159 --- /dev/null +++ b/srcpkgs/qimgv/patches/fix-musl.patch @@ -0,0 +1,13 @@ +diff --git core.cpp core.cpp +index 26821e3..231ec1a 100644 +--- core.cpp ++++ core.cpp +@@ -16,7 +16,7 @@ Core::Core() + scaler(nullptr), + thumbnailer(nullptr) + { +-#ifdef __linux__ ++#ifdef __GLIBC__ + // default value of 128k causes memory fragmentation issues + // finding this took 3 days of my life + mallopt(M_MMAP_THRESHOLD, 64000); diff --git a/srcpkgs/qimgv/template b/srcpkgs/qimgv/template new file mode 100644 index 00000000000..232eedcd910 --- /dev/null +++ b/srcpkgs/qimgv/template @@ -0,0 +1,17 @@ +# Template file for 'qimgv' +pkgname=qimgv +version=0.7 +revision=1 +build_style=cmake +makedepends="qt5-devel mpv-devel" +depends="hicolor-icon-theme" +short_desc="Cross-platform image viewer with webm support" +maintainer="travankor " +license="GPL-3.0-or-later" +homepage="https://github.com/easymodo/qimgv" +distfiles="https://github.com/easymodo/qimgv/archive/v${version}.tar.gz" +checksum=ce47987c835068230eeb8512ee5e3f9751e4c7d3f94785ebe386e4484da417d6 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools qt5-qmake" +fi