mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
qTox: add application icon
This commit is contained in:
@@ -10,13 +10,14 @@ CHECKSUM_SHA256="2664940cedfc4d168995542f89a17d894c3d0675ac463eaf4bd4b55825d1787
|
||||
SOURCE_FILENAME="qtox-v$portVersion.tar.gz"
|
||||
SOURCE_DIR="qTox-$portVersion"
|
||||
PATCHES="qtox-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="qtox.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qtox$secondaryArchSuffix = $portVersion
|
||||
cmd:qtox = $portVersion
|
||||
app:qTox = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -87,17 +88,32 @@ BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir \
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-lnetwork ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
rm -rf $prefix/share
|
||||
addAppDeskbarSymlink $prefix/bin/qtox qTox
|
||||
mkdir -p $appsDir
|
||||
cp build/qtox $appsDir/qTox
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.qtox"
|
||||
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/qtox.rdef.in > build/qtox.rdef
|
||||
|
||||
addResourcesToBinaries build/qtox.rdef $appsDir/qTox
|
||||
addAppDeskbarSymlink $appsDir/qTox
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user