qt6_jdenticon, new, user icon extension for Nheko (#11188)

This commit is contained in:
Schrijvers Luc
2024-10-04 14:14:19 +02:00
committed by GitHub
parent 63e1dd4a08
commit f49ee23652

View File

@@ -0,0 +1,56 @@
SUMMARY="Qt6 / C++14 Port of Jdenticon"
DESCRIPTION="This is the initial Qt5 port of jdenticon https://github.com/dmester/jdenticon
Not all of the features are currently implemented, and there may be bugs in various places. It \
also does not have a proper build other than via qmake / Qt Creator. Consider this a Work In \
Progress at the moment.
The eventual plan for this is that it will be made into a Qt5 library that can be used in other \
applications with a command-line application for use as a standalone generator.
In order to generate new jdenticon's, the main function in qtidenticon.cpp must be modified. \
The program does not yet support command line arguments that allow the input of the text to be \
jdenticon-ified."
HOMEPAGE="https://github.com/Nheko-Reborn/qt-jdenticon/"
COPYRIGHT="2019 Joseph Donofry"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/Nheko-Reborn/qt-jdenticon/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="39fca8c8a6a95fd76419ace3ec5f0b7876044abc78b979c2632ab73b2da50b58"
SOURCE_DIR="qt-jdenticon-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_jdenticon$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Gui$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:qmake6
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
qmake6 .
make $jobArgs
}
INSTALL()
{
mkdir -p $addOnsDir/Qt6 $d
cp libqtjdenticon.so $addOnsDir/Qt6
}