filelight, new recipe (#9074)

This commit is contained in:
Schrijvers Luc
2023-07-24 10:50:32 +02:00
committed by GitHub
parent 354fd35e88
commit 9a0b000cca
3 changed files with 184 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,47 @@
resource app_flags B_SINGLE_LAUNCH;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
variety = B_APPV_FINAL,
internal = 0,
short_info = "@APP_NAME@",
long_info = "@LONG_INFO@"
};
resource app_signature "@APP_SIGNATURE@";
resource vector_icon {
$"6E6369660502000602000000BD55553D55550000004BAAAA4A0000002A2C2FFF"
$"42464902000602000000BCD5553CD5550000004B6AAA49FFFF00728790FF8596"
$"9E020002023C6AAA3C6AAABC6AAA3C6AAA4880004BAAAA00020303FFFF424649"
$"0002000602000000BC00003C00000000004B00004A00000006A370FF22D1B004"
$"001E0A0606FF07C6A740C6A740C6A7C39340C6A7C393C6A740C7E540CA6040C9"
$"22C5A2CA60CA6040CA60C5A2C92240C6A740C7E540C6A740400607FF1F40B520"
$"40B520B9DDB520B52040B520B9DDB54D40B5A740B57A40B6B740B8D8402C40B8"
$"D8BBEC40B8D8BBECB8D840B79A40B52040B65D40B520B520020A40B6B740B6B7"
$"BABFB6B7B6B740B6B7BABFB6B7C4C040C8C8BABFC8C8C4C0C8C8C8C840C8C8C4"
$"C0C78A40C50F40C64D40C50FC2B140C50FC2B1C50FBCCEC50FBA6F40BA6FC2B1"
$"BA6FBCCE40BA6FBCCEBA6F40B93240B6B740B7F540B6B740B6B740B6B740B6B7"
$"0606FF0740BC0740BC07C1CFBC07C37740C377BDB0C377C1CF40C377C1CFC377"
$"BDB0C377BC0740BC07C1CFBC07BDB040BC07BDB0BC0740BC07BC07020EBEB034"
$"BEB034BD72BC3534BEB0BC35BD72BB71C075BC64C400BBEAC23ABC1AC42CBB85"
$"C484BBCFC458BB83C485BB804CBB81C486BCEAC5F240C8C8BE55C75DC03EC946"
$"C13CCA44C0BDC9C5C5EDC99DCA44C13CC99DC5EDC9C5C0BDC8C840C946C03EC8"
$"1240C6A740C75D40C67A405040C64D4050BDD6C3F634C549BC22C23434BEB034"
$"C07234BEB034BEB034BEB034BEB0340606FF0740BC0740BC07C1CFBC07C37740"
$"C377BDB0C377C1CF40C377C1CFC377BDB0C377BC0740BC07C1CFBC07BDB040BC"
$"07BDB0BC0740BC07BC070606FF0740304030BC3730304030BC3730C3484050BC"
$"3750C34850504050C34850BC374030C348304030300606FF07CA5C40CA5C40CA"
$"16C56340C9D7C575C9D740CA0540CA6040CA32C5A2CA60CA6040CA60C5A2CA5E"
$"40CA5C40CA5D40CA5C40400608FF7FB523BF37B523BF37B521BF65B52040B520"
$"BF92B54D40B5A740B57A40B60240B6B740B65D40B6B7BF92B6B7BF37B6B7BF65"
$"B65DBF37B5A7BF37B602BF37B57BBF37B523BF37B54FBF37B523BF37BF370608"
$"FF7FB6B740B6B740B6B7C4C040C8C8BABFC8C8C4C0C8C8C8C840C8C8C4C0C8C5"
$"40C8C140C8C340C87AC48040C83FC492C83FBAEDC83FB6C040B707C480B6BD40"
$"B6B740B6BA40B6B74040060A00020001000A010102000A02020304000A030205"
$"06000A04020708000A04010900"
};

View File

@@ -0,0 +1,137 @@
SUMMARY="An application to visualize the disk usage on your computer"
DESCRIPTION="Filelight allows you to understand exactly where your diskspace is being used by \
graphically representating your filesystem as a set of concentric segmented-rings.
Useful Tips
- Click on directories to center the view there
- Click on files to launch the application associated with them
- Middle click to open files/directories with your file browser
- Increase the window size to see more detail
- Hover over segments to find out more information
- You can specify a directory to scan on startup from the command line like this: \
*filelight /home/me/foobar*"
HOMEPAGE="https://kde.org/applications/utilities/filelight"
COPYRIGHT="2010-2022 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/Attic/release-service/20.04.3/src/filelight-$portVersion.tar.xz"
CHECKSUM_SHA256="d0939d0a04424978c06b675ac784c6a1ecbccbb67a31f5af661c6716bf38f0a4"
ADDITIONAL_FILES="filelight.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
GLOBAL_WRITABLE_FILES="
settings/xdg/filelightrc keep-old
"
libVersion="5.20.3"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
filelight$secondaryArchSuffix = $portVersion
app:FileLight$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5Auth$secondaryArchSuffix
lib:libKF5Codecs$secondaryArchSuffix
lib:libKF5Completion$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5ConfigGui$secondaryArchSuffix
lib:libKF5ConfigWidgets$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5I18n$secondaryArchSuffix
lib:libKF5KIOCore$secondaryArchSuffix
lib:libKF5JobWidgets$secondaryArchSuffix
lib:libKF5Service$secondaryArchSuffix
lib:libKF5Solid$secondaryArchSuffix
lib:libKF5WidgetsAddons$secondaryArchSuffix
lib:libKF5WindowSystem$secondaryArchSuffix
lib:libKF5XmlGui$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= 5.93.0
devel:libKF5Auth$secondaryArchSuffix
devel:libKF5Bookmarks$secondaryArchSuffix
devel:libKF5Codecs$secondaryArchSuffix
devel:libKF5Completion$secondaryArchSuffix
devel:libKF5ConfigCore$secondaryArchSuffix
devel:libKF5ConfigWidgets$secondaryArchSuffix
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5I18n$secondaryArchSuffix
devel:libKF5ItemViews$secondaryArchSuffix
devel:libKF5JobWidgets$secondaryArchSuffix
devel:libKF5KIOCore$secondaryArchSuffix
devel:libKF5Service$secondaryArchSuffix
devel:libKF5Solid$secondaryArchSuffix
devel:libKF5WidgetsAddons$secondaryArchSuffix
devel:libKF5WindowSystem$secondaryArchSuffix
devel:libKF5XmlGui$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5DBus$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgmerge
cmd:pkg_config$secondaryArchSuffix
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$appsDir \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-Wno-dev
make -C build $jobArgs
}
INSTALL()
{
make -C build install
mv $appsDir/filelight $appsDir/FileLight
# we are not linux
rm -rf $dataDir/{applications,icons,metainfo}
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local APP_NAME="FileLight"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.filelight"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
-e "s|@APP_NAME@|$APP_NAME|" \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/filelight.rdef.in > filelight.rdef
addResourcesToBinaries filelight.rdef $appsDir/FileLight
addAppDeskbarSymlink $appsDir/FileLight
}
TEST()
{
make check
}