qBittorrent: enable secondary architecture

This commit is contained in:
Sergei Reznikov
2017-09-07 14:24:11 +03:00
parent 386f524682
commit 4ac1043115
2 changed files with 15 additions and 13 deletions

View File

@@ -1,6 +1,4 @@
resource app_signature "@APP_SIGNATURE@";
resource app_flags B_MULTIPLE_LAUNCH;
resource app_version {
@@ -12,9 +10,14 @@ resource app_version {
internal = 0,
short_info = "qBittorrent",
long_info = "qBittorrent - BitTorrent client in C++ and Qt.\nCopyright ©2006-2016 Christophe Dumez"
long_info = "@LONG_INFO@"
};
resource app_signature "@APP_SIGNATURE@";
resource file_types message {
"types" = "application/x-bittorrent"
};
resource vector_icon array {
$"6E63696607020006023A8B003BCA3CBF52533E3A8B4B46E046FD4900FFFFFFFF"
$"F2F8FF0400660200060238738CBA0C5E3F6EB23E0DCC44A2264427B800B40000"

View File

@@ -14,10 +14,10 @@ SOURCE_URI="https://downloads.sf.net/qbittorrent/qbittorrent-$portVersion.tar.xz
CHECKSUM_SHA256="a7bbc08a39912a15a496702e736a98c083011bbb14fe5f04440880d7e6b2ceae"
SOURCE_DIR="qbittorrent-$portVersion"
PATCHES="qbittorrent-$portVersion.patchset"
ADDITIONAL_FILES="qbittorrent.rdef"
ADDITIONAL_FILES="qbittorrent.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
PROVIDES="
qbittorrent$secondaryArchSuffix = $portVersion
@@ -83,19 +83,18 @@ INSTALL()
strip $appsDir/qBittorrent/qBittorrent
APP_SIGNATURE="application/x-vnd.qt5-qbittorrent"
MAJOR="`echo "$portVersion" | cut -d. -f1`"
MIDDLE="`echo "$portVersion" | cut -d. -f2`"
MINOR="`echo "$portVersion" | cut -d. -f3`"
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|" \
$portDir/additional-files/qbittorrent.rdef \
> qbittorrent.rdef
addResourcesToBinaries qbittorrent.rdef \
$appsDir/qBittorrent/qBittorrent
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/qbittorrent.rdef.in > qbittorrent.rdef
addResourcesToBinaries qbittorrent.rdef $appsDir/qBittorrent/qBittorrent
addAppDeskbarSymlink $appsDir/qBittorrent/qBittorrent
}