0
0
Fork 0
haikuports/dev-qt/qtdropbox/qtdropbox-20151109.recipe

80 lines
2.0 KiB
Bash

SUMMARY="An API for the well known cloud storage service"
DESCRIPTION="Basically QtDropbox aims to provide an easy to use possibility \
to access the REST API of Dropbox. All HTTP calls are hidden behind the \
curtains of neat C++/Qt classes with nice method names and specific uses."
HOMEPAGE="https://github.com/lycis/QtDropbox"
COPYRIGHT="2015 Daniel Eder"
LICENSE="GNU LGPL v3"
REVISION="1"
srcGitRev="17ad0070e8157fc973a3f3c47c676e73728c26d0"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="edceab7fdc5deeeb39b2f868ba24ccd2b479013467dad4c81179a412e87bdc6b"
SOURCE_FILENAME="QtDropbox-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="QtDropbox-$srcGitRev"
ARCHITECTURES="all !x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
qtdropbox$secondaryArchSuffix = $portVersion
lib:libqtdropbox$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
PROVIDES_devel="
qtdropbox${secondaryArchSuffix}_devel = $portVersion
devel:libqtdropbox$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
qtdropbox$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Xml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:doxygen
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
"
defineDebugInfoPackage qtdropbox$secondaryArchSuffix \
"$libDir"/libQtDropbox.so.$libVersion
BUILD()
{
qmake .
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir $libDir
cp -r ../../usr/include/* $includeDir
cp -r ../../usr/lib/* $libDir
rm -rf ../../usr
# prepare develop/lib
prepareInstalledDevelLibs libQtDropbox
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}