mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Simsu: Update to 1.4.3, remove icons.zip (#10313)
* Simsu: Update to 1.4.3, remove icons.zip * Simsu: Remove unneeded data files * Simsu: Remove SOURCE_DIR * Simsu: Fix rm dir arrangement --------- Co-authored-by: Julius Enriquez <win8linux@github.com>
This commit is contained in:
Binary file not shown.
@@ -9,12 +9,8 @@ COPYRIGHT="2009-2023 Graeme Gott"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://gottcode.org/simsu/simsu-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="7230293d7ff8d52b4a8d7f4e26638cff6e22e2a78edcc4ddaf7988da624fb37c"
|
||||
SOURCE_DIR="simsu-$portVersion"
|
||||
ADDITIONAL_FILES="
|
||||
simsu.rdef.in
|
||||
icons.zip
|
||||
"
|
||||
CHECKSUM_SHA256="77c690f242a073c99cb6fa08f039d02988110b34e211f0d8c7f0fe0b9c0e41a2"
|
||||
ADDITIONAL_FILES="simsu.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -33,41 +29,35 @@ REQUIRES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Gui$secondaryArchSuffix
|
||||
devel:libQt6UiTools$secondaryArchSuffix
|
||||
devel:libQt6Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:linguist6$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:unzip
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
unzip -o $sourceDir/../../additional-files/icons.zip -d $sourceDir/icons
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir/Simsu \
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir/Simsu \
|
||||
-DCMAKE_INSTALL_DATADIR=$appsDir/Simsu/data \
|
||||
-DCMAKE_BUILD_TYPE='None' \
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
||||
-DCMAKE_INSTALL_DATADIR=$dataDir/Simsu/ \
|
||||
-DCMAKE_INSTALL_MANDIR=$manDir
|
||||
|
||||
make -C build $jobArgs
|
||||
cmake --build build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install -C build
|
||||
mv $appsDir/Simsu/simsu $appsDir/Simsu/Simsu
|
||||
rm -rf $appsDir/Simsu/data/{metainfo,icons,applications}
|
||||
cmake --install build
|
||||
mv $appsDir/simsu $appsDir/Simsu
|
||||
rm -rf $dataDir/Simsu/{applications,icons,metainfo}
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.gottcode-simsu"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
@@ -83,9 +73,9 @@ INSTALL()
|
||||
$portDir/additional-files/simsu.rdef.in > $sourceDir/simsu.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/simsu.rdef \
|
||||
$appsDir/Simsu/Simsu
|
||||
$appsDir/Simsu
|
||||
|
||||
mimeset -f $appsDir/Simsu/Simsu
|
||||
mimeset -f $appsDir/Simsu
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Simsu/Simsu Simsu
|
||||
addAppDeskbarSymlink $appsDir/Simsu
|
||||
}
|
||||
Reference in New Issue
Block a user