valentina-0.6.1.recipe revision f3f38ea7
1SUMMARY="Cloth patternmaking software" 2DESCRIPTION="Valentina is an open source pattern drafting software tool, designed to be the \ 3foundation of a new stack of open source tools to remake the garment industry. 4Small-batch and custom-sized clothing manufacturing is essential to create a sustainable \ 5future, preserve small- to medium-sized textile spinning and weaving manufacturers, enable \ 6independent and small designers and manufacturers to scale up to make a decent living, \ 7rebuild local garment districts, and reduce or eliminate slave labor." 8HOMEPAGE="https://valentinaproject.bitbucket.io/" 9COPYRIGHT="2013-2019 Valentina project" 10LICENSE="GNU GPL v3" 11REVISION="1" 12SOURCE_URI="https://github.com/dismine/Valentina_git/archive/v$portVersion.tar.gz" 13CHECKSUM_SHA256="714460dcecd9fb42371298a29181cc3c7e33ab2a18236aceeffc1732d7ddffd7" 14SOURCE_DIR="Valentina_git-$portVersion" 15PATCHES="valentina-$portVersion.patchset" 16ADDITIONAL_FILES=" 17 valentina.rdef.in 18 tape.rdef.in 19 " 20 21ARCHITECTURES="!x86_gcc2 x86 x86_64" 22SECONDARY_ARCHITECTURES="x86" 23 24PROVIDES=" 25 valentina$secondaryArchSuffix = $portVersion 26 app:Valentina$secondaryArchSuffix = $portVersion 27 " 28REQUIRES=" 29 haiku$secondaryArchSuffix 30 lib:libGL$secondaryArchSuffix 31 lib:libQt5Core$secondaryArchSuffix 32 lib:libQt5Gui$secondaryArchSuffix 33 lib:libQt5PrintSupport$secondaryArchSuffix 34 lib:libQt5Svg$secondaryArchSuffix 35 lib:libQt5Widgets$secondaryArchSuffix 36 " 37 38BUILD_REQUIRES=" 39 haiku${secondaryArchSuffix}_devel 40 devel:libGL$secondaryArchSuffix 41 devel:libQt5Core$secondaryArchSuffix 42 devel:libQt5Gui$secondaryArchSuffix 43 devel:libQt5PrintSupport$secondaryArchSuffix 44 devel:libQt5Svg$secondaryArchSuffix 45 devel:libQt5Widgets$secondaryArchSuffix 46 " 47BUILD_PREREQUIRES=" 48 cmd:ccache 49 cmd:find 50 cmd:g++$secondaryArchSuffix 51 cmd:git 52 cmd:lrelease$secondaryArchSuffix >= 5 53 cmd:make 54 cmd:pkg_config$secondaryArchSuffix 55 cmd:qmake$secondaryArchSuffix >= 5 56 cmd:which 57 " 58 59BUILD() 60{ 61 mkdir -p build 62 cd build 63 qmake \ 64 PREFIX=$appsDir/Valentina \ 65 PREFIX_LIB=$appsDir/Valentina/lib \ 66 "CONFIG+=noTests noRunPath noDebugSymbols noWindowsInstaller" \ 67 ../Valentina.pro -r 68 make $jobArgs 69} 70 71INSTALL() 72{ 73 mkdir -p $appsDir/Valentina/{lib,translations} 74 75 cp -rf build/src/libs/qmuparser/bin/* $appsDir/Valentina/lib 76 cp -rf build/src/libs/vpropertyexplorer/bin/* $appsDir/Valentina/lib 77 cp -rf build/src/app/tape/bin/tape $appsDir/Valentina/Tape 78 cp -rf build/src/app/valentina/bin/valentina $appsDir/Valentina/Valentina 79 80 cp -dpR src/app/share/{labels,tables,collection} $appsDir/Valentina 81 cp -rf share/translations/*.qm $appsDir/Valentina/translations 82 83 strip $appsDir/Valentina/{Tape,Valentina} 84 strip $appsDir/Valentina/lib/* 85 86 local APP_SIGNATURE="application/x-vnd.valentina" 87 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 88 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 89 local MINOR="`echo "$portVersion" | cut -d. -f3`" 90 local LONG_INFO="$SUMMARY" 91 sed \ 92 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 93 -e "s|@MAJOR@|$MAJOR|" \ 94 -e "s|@MIDDLE@|$MIDDLE|" \ 95 -e "s|@MINOR@|$MINOR|" \ 96 -e "s|@LONG_INFO@|$LONG_INFO|" \ 97 $portDir/additional-files/valentina.rdef.in > valentina.rdef 98 addResourcesToBinaries valentina.rdef $appsDir/Valentina/Valentina 99 100 local APP_SIGNATURE="application/x-vnd.valentina-tape" 101 sed \ 102 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 103 -e "s|@MAJOR@|$MAJOR|" \ 104 -e "s|@MIDDLE@|$MIDDLE|" \ 105 -e "s|@MINOR@|$MINOR|" \ 106 -e "s|@LONG_INFO@|$LONG_INFO|" \ 107 $portDir/additional-files/tape.rdef.in > tape.rdef 108 addResourcesToBinaries tape.rdef $appsDir/Valentina/Tape 109 110 addAppDeskbarSymlink $appsDir/Valentina/Valentina 111} 112