libfm_qt-0.14.0.recipe revision ae94b127
1SUMMARY="Core library of PCManFM-Qt (Qt binding for libfm)"
2DESCRIPTION="libfm-qt is the Qt port of libfm, a library providing components \
3to build desktop file managers which belongs to LXDE."
4HOMEPAGE="https://github.com/lxqt/libfm-qt"
5COPYRIGHT="2013-2019 LXQt team"
6LICENSE="GNU LGPL v2.1"
7REVISION="3"
8SOURCE_URI="https://github.com/lxqt/libfm-qt/archive/$portVersion.tar.gz"
9CHECKSUM_SHA256="61c05da2afb22a5b869c6df3b62a2f7682ded33d3494bc73efb045a870295871"
10SOURCE_DIR="libfm-qt-$portVersion"
11PATCHES="libfm_qt-$portVersion.patchset"
12
13ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
14SECONDARY_ARCHITECTURES="x86"
15
16libVersion="6.0.0"
17libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
18
19PROVIDES="
20	libfm_qt$secondaryArchSuffix = $portVersion
21	lib:libfm_qt$secondaryArchSuffix = $libVersionCompat
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	lib:libexif$secondaryArchSuffix
26	lib:libfm$secondaryArchSuffix
27	lib:libgio_2.0$secondaryArchSuffix
28	lib:libglib_2.0$secondaryArchSuffix
29	lib:libgobject_2.0$secondaryArchSuffix
30	lib:libgthread_2.0$secondaryArchSuffix
31	lib:libintl$secondaryArchSuffix
32	lib:libmenu_cache$secondaryArchSuffix
33	lib:libQt5Core$secondaryArchSuffix
34	lib:libQt5Gui$secondaryArchSuffix
35	lib:libQt5Widgets$secondaryArchSuffix
36	lib:libxcb$secondaryArchSuffix
37	"
38
39PROVIDES_devel="
40	libfm_qt${secondaryArchSuffix}_devel = $portVersion
41	devel:libfm_qt$secondaryArchSuffix = $libVersionCompat
42	"
43REQUIRES_devel="
44	libfm_qt$secondaryArchSuffix == $portVersion base
45	devel:libfm$secondaryArchSuffix
46	devel:libQt5Widgets$secondaryArchSuffix
47#	devel:libQt5X11Extras$secondaryArchSuffix
48	"
49
50BUILD_REQUIRES="
51	haiku${secondaryArchSuffix}_devel
52	lxqt_build_tools$secondaryArchSuffix
53	devel:libexif$secondaryArchSuffix
54	devel:libfm$secondaryArchSuffix
55	devel:libfm_extra$secondaryArchSuffix
56	devel:libglib_2.0$secondaryArchSuffix
57	devel:libmenu_cache$secondaryArchSuffix
58	devel:libQt5Core$secondaryArchSuffix
59	devel:libxcb$secondaryArchSuffix
60	"
61BUILD_PREREQUIRES="
62	cmd:cmake
63	cmd:gcc$secondaryArchSuffix
64	cmd:ld$secondaryArchSuffix
65	cmd:lrelease$secondaryArchSuffix >= 5
66	cmd:make
67	cmd:pkg_config$secondaryArchSuffix
68	"
69
70defineDebugInfoPackage libfm_qt$secondaryArchSuffix \
71	"$libDir"/libfm-qt.so.$libVersion
72
73BUILD()
74{
75	mkdir -p build
76	cd build
77	cmake .. $cmakeDirArgs \
78		-DCMAKE_BUILD_TYPE=Release -DPULL_TRANSLATIONS=no
79	make $jobArgs
80}
81
82INSTALL()
83{
84	cd build
85	make install
86
87	prepareInstalledDevelLib libfm-qt
88	fixPkgconfig
89
90	packageEntries devel \
91		"$developDir"
92}
93