KTorrent: bump version

* fix plugins install path
* add icon
* fix build with Qt 5.11
This commit is contained in:
Sergei Reznikov
2018-06-09 13:49:12 +03:00
parent 880812694b
commit b8eee5b1ed
2 changed files with 18 additions and 4 deletions

View File

@@ -18,3 +18,14 @@ resource app_signature "@APP_SIGNATURE@";
resource file_types message { resource file_types message {
"types" = "application/x-bittorrent" "types" = "application/x-bittorrent"
}; };
resource vector_icon {
$"6E6369660503010000020006023A4B0D3BC340BCC6743B61F84A95F448A97800"
$"97E306FF81A104020006023C20000000000000003DA00049C00046400000EEFF"
$"ACFFD5E68F03B4D339020006023A98DA3A0C94BB067A3BD5924AD38B48C4D000"
$"4C5E02FF698303070A0936382E3E3D4E4A485141493F49323D2F36340A074A48"
$"3D4E2E3EBBC7C01736344237C08FC1CE0A0435392E3EBBC7C017BC93BD4E0A05"
$"49455141C344BF374240C08FC1CE0A044A4851414242C08FC1CE0A0436344238"
$"49323D2F0A064237403A40464246493F4932070A0001001001178400040A0201"
$"02000A020104000A030103000A040106000A010101000A02010500"
};

View File

@@ -25,11 +25,13 @@ need enabled.
- SOCKSv4 and SOCKSv5 proxy, IPv6 support. - SOCKSv4 and SOCKSv5 proxy, IPv6 support.
- Lots of other useful built-in features and plugins." - Lots of other useful built-in features and plugins."
HOMEPAGE="https://www.kde.org/applications/internet/ktorrent/" HOMEPAGE="https://www.kde.org/applications/internet/ktorrent/"
COPYRIGHT="2010-2017 KDE Organisation" COPYRIGHT="2010-2018 KDE Organisation"
LICENSE="GNU LGPL v2" LICENSE="GNU LGPL v2"
REVISION="1" REVISION="1"
SOURCE_URI="https://github.com/KDE/ktorrent/archive/v$portVersion.tar.gz" COMMIT="d018720d638197683c24dbcd2603128149367a76"
CHECKSUM_SHA256="369cd6705bd6f14702338c4594f57e626dca529280dc9ed7e56ce6ce7d5855c0" SOURCE_URI="https://github.com/KDE/ktorrent/archive/$COMMIT.tar.gz"
SOURCE_DIR="ktorrent-$COMMIT"
CHECKSUM_SHA256="e68de0196f11acff49d5fd5c9d7b89f40c08ec95eb2ff9aef67b6fd0dba77528"
ADDITIONAL_FILES="ktorrent.rdef.in" ADDITIONAL_FILES="ktorrent.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64" ARCHITECTURES="!x86_gcc2 x86 x86_64"
@@ -140,6 +142,7 @@ BUILD()
-DSHARE_INSTALL_PREFIX=$dataDir \ -DSHARE_INSTALL_PREFIX=$dataDir \
-DCMAKE_INSTALL_PREFIX=$appsDir/KTorrent \ -DCMAKE_INSTALL_PREFIX=$appsDir/KTorrent \
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \ -DCMAKE_INSTALL_DATAROOTDIR=$dataDir \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake -DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs make $jobArgs
} }
@@ -155,7 +158,7 @@ INSTALL()
APP_SIGNATURE="application/x-vnd.ktorrent" APP_SIGNATURE="application/x-vnd.ktorrent"
local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`" local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`" local MINOR="0"
local LONG_INFO="$SUMMARY" local LONG_INFO="$SUMMARY"
sed \ sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \