Skip to content

Commit

Permalink
Transmission: userlaunch rework (#3363)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrowerk authored and korli committed Dec 6, 2018
1 parent 7179ded commit 9e67fc3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
8 changes: 0 additions & 8 deletions net-p2p/transmission/additional-files/Transmission_userlaunch

This file was deleted.

8 changes: 8 additions & 0 deletions net-p2p/transmission/additional-files/userlaunch.in
@@ -0,0 +1,8 @@
job x-vnd.@APP@ {
launch @BIN@
no_safemode
legacy
on {
initial_volumes_mounted
}
}
12 changes: 8 additions & 4 deletions net-p2p/transmission/transmission-2.94.recipe
Expand Up @@ -19,13 +19,13 @@ COPYRIGHT="2005-2016 Transmission authors and contributors
LICENSE="Transmission
MIT
GNU GPL v2"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/transmission/transmission-releases/raw/master/transmission-$portVersion.tar.xz"
CHECKSUM_SHA256="35442cc849f91f8df982c3d0d479d650c6ca19310a994eccdaa79a4af3916b7d"
PATCHES="transmission-$portVersion.patchset"
ADDITIONAL_FILES="
transmission.rdef.in
Transmission_userlaunch
userlaunch.in
"

ARCHITECTURES="!x86_gcc2 x86 x86_64"
Expand Down Expand Up @@ -90,6 +90,7 @@ BUILD_PREREQUIRES="
cmd:curl
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5.11
cmd:make
cmd:patch
cmd:pkg_config$secondaryArchSuffix
Expand Down Expand Up @@ -146,8 +147,11 @@ INSTALL()
addAppDeskbarSymlink $appsDir/Transmission

mkdir -p $dataDir/user_launch
cp -af $portDir/additional-files/Transmission_userlaunch \
$dataDir/user_launch/Transmission
sed \
-e "s|@APP@|transmission_daemon|" \
-e "s|@BIN@|"$binDir"/transmission_daemon$secondaryArchSuffix|" \
$portDir/additional-files/userlaunch.in > \
$dataDir/user_launch/Transmission
}

TEST()
Expand Down

0 comments on commit 9e67fc3

Please sign in to comment.