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