mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
108 lines
3.1 KiB
Bash
108 lines
3.1 KiB
Bash
SUMMARY="A development branch of Psi IM XMPP/Jabber client"
|
|
DESCRIPTION="Psi is a cross-platform powerful XMPP/Jabber client (Qt, C++) \
|
|
designed for the Jabber power users."
|
|
HOMEPAGE="https://psi-plus.com/"
|
|
SOURCE_URI="https://github.com/psi-plus/psi-plus-snapshots/archive/$portVersion.tar.gz"
|
|
SOURCE_DIR="psi-plus-snapshots-$portVersion"
|
|
CHECKSUM_SHA256="53e795b97956a8260da9b6b920b5bf9a21c553c26d4504463c25bce906b786aa"
|
|
SOURCE_URI_2="https://github.com/psi-plus/psi-plus-l10n/archive/1.2.156.tar.gz"
|
|
SOURCE_FILENAME_2="psi-plus-l10n-1.2.156.tar.gz"
|
|
SOURCE_DIR_2="psi-plus-l10n-1.2.156"
|
|
CHECKSUM_SHA256_2="2701242e72bd765c4be0f98f82da6688c4d9a01da6c2bfe73e29dbdbc5792ffb"
|
|
REVISION="5"
|
|
LICENSE="GNU GPL v2"
|
|
COPYRIGHT="2005-2018, Psi+ Project"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
ADDITIONAL_FILES="psi-plus.rdef.in"
|
|
PATCHES="psi_plus-$portVersion.patchset"
|
|
|
|
PROVIDES="
|
|
psi_plus$secondaryArchSuffix = $portVersion
|
|
app:Psi$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libhunspell_1.6$secondaryArchSuffix
|
|
lib:libidn$secondaryArchSuffix
|
|
lib:libqca$secondaryArchSuffix
|
|
lib:libqt5$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:patch
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:which
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libhunspell_1.6$secondaryArchSuffix
|
|
devel:libidn$secondaryArchSuffix
|
|
devel:libotr$secondaryArchSuffix
|
|
devel:libqca$secondaryArchSuffix >= 2.1.3
|
|
devel:libqt5$secondaryArchSuffix
|
|
devel:libQt5WebKit$secondaryArchSuffix
|
|
devel:libtidys$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# disable videostatusplugin as it doesn't build
|
|
sed -i 's/videostatusplugin//' src/plugins/generic/CMakeLists.txt
|
|
|
|
ln -sf ../../sources-2/psi-plus-l10n-$portVersion/translations .
|
|
|
|
mkdir -p build && cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX:PATH=$appsDir/Psi-plus \
|
|
-DCMAKE_INSTALL_BINDIR:PATH=$appsDir/Psi-plus \
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=$appsDir/Psi-plus/lib \
|
|
-DCMAKE_INSTALL_DATAROOTDIR:PATH=$appsDir/Psi-plus \
|
|
-DPLUGINS_PATH=plugins \
|
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
|
-DBUNDLED_IRIS=ON \
|
|
-DUSE_HUNSPELL=ON \
|
|
-DENABLE_WEBKIT=OFF \
|
|
-DENABLE_PLUGINS=ON \
|
|
-DONLY_PLUGINS=OFF \
|
|
-DBUILD_PLUGINS="ALL"
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
# cleanup
|
|
rm -rf $appsDir/Psi-plus/{applications,pixmaps}
|
|
|
|
# crashes Psi-plus on launch
|
|
rm -rf $appsDir/Psi-plus/plugins/libjuickplugin.so
|
|
mv $appsDir/Psi-plus/psi-plus $appsDir/Psi-plus/Psi-plus
|
|
|
|
local APP_SIGNATURE="application/x-vnd.Psi-plus"
|
|
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/psi-plus.rdef.in > psi-plus.rdef
|
|
|
|
addResourcesToBinaries psi-plus.rdef $appsDir/Psi-plus/Psi-plus
|
|
addAppDeskbarSymlink $appsDir/Psi-plus/Psi-plus
|
|
}
|