libfm-qt, add libVersion(Compat), add defineDebugInfoPackage (#2932)

This commit is contained in:
Schrijvers Luc
2018-08-25 21:15:39 +02:00
committed by waddlesplash
parent d8a698d229
commit f34f189c21

View File

@@ -1,10 +1,10 @@
SUMMARY="Core library of PCManFM-Qt (Qt binding for libfm)"
DESCRIPTION="libfm-qt is the Qt port of libfm, a library providing components \
to build desktop file managers which belongs to LXDE."
HOMEPAGE="https://github.com/lxqt/libfm-qt/"
HOMEPAGE="https://github.com/lxqt/libfm-qt"
COPYRIGHT="2013-2018 LXQt team"
LICENSE="GNU LGPL v2.1"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/lxqt/libfm-qt/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="61bb7d313b1e722a25fc7835270c6bacfc1c061affb6918252860439adba8f79"
SOURCE_DIR="libfm-qt-$portVersion"
@@ -13,9 +13,12 @@ PATCHES="libfm_qt-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion=5.0.0
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libfm_qt$secondaryArchSuffix = $portVersion
lib:libfm_qt$secondaryArchSuffix = $portVersion
lib:libfm_qt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -35,10 +38,13 @@ REQUIRES="
PROVIDES_devel="
libfm_qt${secondaryArchSuffix}_devel = $portVersion
devel:libfm_qt$secondaryArchSuffix = $portVersion
devel:libfm_qt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libfm_qt$secondaryArchSuffix == $portVersion base
devel:libfm$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
# devel:libQt5X11Extras$secondaryArchSuffix
"
BUILD_REQUIRES="
@@ -60,6 +66,9 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libfm_qt$secondaryArchSuffix \
"$libDir"/libfm-qt.so.$libVersion
BUILD()
{
mkdir -p build
@@ -74,14 +83,9 @@ INSTALL()
cd build
make install
prepareInstalledDevelLibs libfm-qt
prepareInstalledDevelLib libfm-qt
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
"$developDir"
}