diff --git a/haiku-apps/haiqr/haiqr-2.0.recipe b/haiku-apps/haiqr/haiqr-2.0.recipe new file mode 100644 index 000000000..a49a82397 --- /dev/null +++ b/haiku-apps/haiqr/haiqr-2.0.recipe @@ -0,0 +1,41 @@ +SUMMARY="QR generator for Haiku" +DESCRIPTION="HaiQR is a QR code generator. \ +It's a native python3 program that uses Haiku APIs through Haiku-PyAPI \ +wrapper, pillow and qrcode modules. \ +It allows you create a personalized QR code with a small thumbnail in the \ +middle (if you'd like). You can save the QR generated. \ +The code is released under MIT license." +HOMEPAGE="https://github.com/tmtfx/HaiQR" +COPYRIGHT="2024 Fabio Tomat (TmTFx)" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/tmtfx/HaiQR/archive/refs/tags/$portVersion.tar.gz" +CHECKSUM_SHA256="3c0fcc7b7c63b9d9440661d18eac5d623e8bcc5dcb604ca16fc10a222c43245a" +SOURCE_DIR="HaiQR-$portVersion" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + haiqr = $portVersion + app:HaiQR = $portVersion + cmd:haiqr.py + " + +REQUIRES=" + haiku + haiku_pyapi_python310 + pillow_python310 + qrcode_python310 + " + +INSTALL() +{ + mkdir -p $appsDir/HaiQR2 $binDir $dataDir/HaiQR2 $docDir/HaiQR2 + cp HaiQR.py $appsDir/HaiQR2 + cp data/HaiQR.png $dataDir/HaiQR2 + cp data/* $docDir/HaiQR2 + ln -sfn $appsDir/HaiQR2/HaiQR.py $binDir/HaiQR.py + ln -sfn $appsDir/HaiQR2/HaiQR.py $appsDir/HaiQR2/HaiQR + addAppDeskbarSymlink $appsDir/HaiQR2/HaiQR +}