Files
haikuports/x11-misc/pcmanfm-qt/pcmanfm_qt-1.3.0.recipe
Humdinger 8fbd176dec PCManFM: improved summary description
The homepage is 404 ATM, but I suppose LXDE will fix their wiki
eventually...
2023-07-02 09:17:59 +02:00

103 lines
2.9 KiB
Bash

SUMMARY="The file manager used by LXDE"
DESCRIPTION="PCMan File Manager (PCManFM) is a file manager application \
developed by Hong Jen Yee and is meant to be a replacement for Nautilus, \
Konqueror and Thunar.
PCManFM is the standard file manager in LXDE, which is also developed by \
the same author together with other developers.
Main features are twin panels, tabbed browsing, thumbnails and bookmarks."
HOMEPAGE="https://wiki.lxde.org/en/PCManFM"
COPYRIGHT="2009-2014 洪任諭 (Hong Jen Yee)"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://github.com/lxqt/pcmanfm-qt/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="093c7d0d1d8a339fc91df1df055996b63ad200954fd40477f149365e0a732c7c"
SOURCE_DIR="pcmanfm-qt-$portVersion"
PATCHES="pcmanfm_qt-$portVersion.patchset"
ADDITIONAL_FILES="pcmanfm-qt.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
pcmanfm_qt$secondaryArchSuffix = $portVersion
app:PCManFM$secondaryArchSuffix = $portVersion
cmd:pcmanfm_qt$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libexif$secondaryArchSuffix
lib:libfm$secondaryArchSuffix
lib:libfm_qt$secondaryArchSuffix
lib:libgio_2.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libgthread_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libmenu_cache$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libxcb$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
lxqt_build_tools$secondaryArchSuffix
devel:libexif$secondaryArchSuffix
devel:libfm$secondaryArchSuffix
devel:libfm_extra$secondaryArchSuffix
devel:libfm_qt$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libmenu_cache$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export CXXFLAGS="-lnetwork"
cmake -Bbuild -S. $cmakeDirArgs \
-Dfm-qt_DIR=/system/data/cmake/fm-qt \
-DCMAKE_BUILD_TYPE=Release
make -C build $jobArgs
}
INSTALL()
{
make -C build install
mkdir $appsDir
mv $binDir/pcmanfm-qt $appsDir/PCManFM
rm -rf $binDir $dataDir/applications
local APP_SIGNATURE="application/x-vnd.qt5-pcmanfm-qt"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/pcmanfm-qt.rdef.in > pcmanfm-qt.rdef
addResourcesToBinaries pcmanfm-qt.rdef $appsDir/PCManFM
addAppDeskbarSymlink $appsDir/PCManFM
}
TEST()
{
make check
}