commit
502caafa64
5 changed files with 154 additions and 0 deletions
@ -0,0 +1,25 @@ |
||||
pkgbase = transmission-remote-gui-qt4 |
||||
pkgdesc = Cross platform remote GUI for the Transmission daemon |
||||
pkgver = 5.0.1 |
||||
pkgrel = 2 |
||||
url = http://code.google.com/p/transmisson-remote-gui/ |
||||
install = transmission-remote-gui.install |
||||
arch = i686 |
||||
arch = x86_64 |
||||
license = GPL2 |
||||
makedepends = lazarus |
||||
makedepends = unzip |
||||
depends = qt4pas |
||||
provides = transmission-remote-gui |
||||
conflicts = transmission-remote-gui-gtk2 |
||||
conflicts = transmission-remote-gui-svn |
||||
conflicts = transmission-remote-gui |
||||
source = http://transmisson-remote-gui.googlecode.com/files/transgui-5.0.1-src.zip |
||||
source = transgui.desktop |
||||
source = fix_cannot_execte_on_open.patch |
||||
md5sums = 471ed1f3f75a0ebcc9d3a0cb72f2a61c |
||||
md5sums = cf55fd5a681d9b34a1f9c7d91b74d121 |
||||
md5sums = d2f40c9e7e7b86cdfa9c2e2135f18bd6 |
||||
|
||||
pkgname = transmission-remote-gui-qt4 |
||||
|
@ -0,0 +1,49 @@ |
||||
# Maintainer : Dobroslaw Kijowski [dobo] <dobo90_at_gmail.com> |
||||
# Contributor: Paul N. Maxwell <msg.maxwel@gmail.com> |
||||
|
||||
pkgname=transmission-remote-gui-qt4 |
||||
_pkgname=transgui |
||||
pkgver=5.0.1 |
||||
pkgrel=2 |
||||
pkgdesc='Cross platform remote GUI for the Transmission daemon' |
||||
arch=(i686 x86_64) |
||||
url='http://code.google.com/p/transmisson-remote-gui/' |
||||
license=(GPL2) |
||||
depends=(qt4pas) |
||||
makedepends=(lazarus unzip) |
||||
provides=(transmission-remote-gui) |
||||
conflicts=(transmission-remote-gui-gtk2 transmission-remote-gui-svn transmission-remote-gui) |
||||
install=transmission-remote-gui.install |
||||
source=(http://transmisson-remote-gui.googlecode.com/files/${_pkgname}-${pkgver}-src.zip |
||||
${_pkgname}.desktop |
||||
fix_cannot_execte_on_open.patch) |
||||
md5sums=(471ed1f3f75a0ebcc9d3a0cb72f2a61c |
||||
cf55fd5a681d9b34a1f9c7d91b74d121 |
||||
d2f40c9e7e7b86cdfa9c2e2135f18bd6) |
||||
_ws=qt |
||||
|
||||
build() { |
||||
mkdir ${srcdir}/config |
||||
cd ${srcdir}/TransGUI |
||||
# moonman's fix |
||||
cp ${srcdir}/fix_cannot_execte_on_open.patch . |
||||
patch -p1 < fix_cannot_execte_on_open.patch |
||||
lazbuild ${_pkgname}.lpi --lazarusdir=/usr/lib/lazarus --widgetset=${_ws} \ |
||||
--primary-config-path=${srcdir}/config |
||||
} |
||||
|
||||
package() { |
||||
cd ${srcdir}/TransGUI |
||||
|
||||
install -D -m 755 units/${_pkgname} ${pkgdir}/usr/bin/${_pkgname} |
||||
|
||||
install -d -m 755 ${pkgdir}/usr/share/${_pkgname}/lang |
||||
install -D -m 644 lang/transgui.* ${pkgdir}/usr/share/${_pkgname}/lang |
||||
rm ${pkgdir}/usr/share/${_pkgname}/lang/transgui.template |
||||
|
||||
install -d -m 755 ${pkgdir}/usr/share/doc/${pkgname} |
||||
install -D -m 644 readme.txt history.txt LICENSE.txt ${pkgdir}/usr/share/doc/${pkgname} |
||||
|
||||
install -D -m 644 ${_pkgname}.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png |
||||
install -D -m 644 ${srcdir}/${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop |
||||
} |
@ -0,0 +1,58 @@ |
||||
diff -ruN a/main.pas b/main.pas
|
||||
--- a/main.pas 2014-01-04 03:51:46.000000000 -0700
|
||||
+++ b/main.pas 2014-04-09 04:02:16.811032289 -0600
|
||||
@@ -1005,10 +1005,9 @@
|
||||
// Restart the app with the LIBOVERLAY_SCROLLBAR=0 env var.
|
||||
proc:=TProcess.Create(nil);
|
||||
try
|
||||
- s:='';
|
||||
- for i:=0 to ParamCount do
|
||||
- s:=s + '"' + ParamStrUTF8(i) + '" ';
|
||||
- proc.CommandLine:=s;
|
||||
+ proc.Executable:=ParamStrUTF8(0);
|
||||
+ for i:=1 to ParamCount do
|
||||
+ proc.Parameters.Add(ParamStrUTF8(i));
|
||||
for i:=0 to GetEnvironmentVariableCount - 1 do
|
||||
proc.Environment.Add(GetEnvironmentString(i));
|
||||
proc.Environment.Values['LIBOVERLAY_SCROLLBAR']:='0';
|
||||
diff -ruN a/utils.pas b/utils.pas
|
||||
--- a/utils.pas 2014-01-04 03:51:46.000000000 -0700
|
||||
+++ b/utils.pas 2014-04-09 04:05:21.552036348 -0600
|
||||
@@ -398,18 +398,21 @@
|
||||
cmd, fn: String;
|
||||
begin
|
||||
Result:=-1;
|
||||
+ WrkProcess:=TProcess.Create(nil);
|
||||
+ WrkProcess.Options:=[poNoConsole,poWaitOnExit];
|
||||
+
|
||||
cmd:=FindDefaultExecutablePath('xdg-open');
|
||||
if cmd = '' then begin
|
||||
cmd:=FindDefaultExecutablePath('gnome-open');
|
||||
if cmd = '' then begin
|
||||
cmd:=FindDefaultExecutablePath('kioclient');
|
||||
if cmd <> '' then
|
||||
- cmd:=cmd + ' exec'
|
||||
+ Wrkprocess.Parameters.Add('exec')
|
||||
else begin
|
||||
cmd:=FindDefaultExecutablePath('kfmclient');
|
||||
if cmd = '' then
|
||||
exit;
|
||||
- cmd:=cmd + ' exec';
|
||||
+ Wrkprocess.Parameters.Add('exec')
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
@@ -417,11 +420,10 @@
|
||||
fn:=FileName;
|
||||
if Pos('://', fn) > 0 then
|
||||
fn:=StringReplace(fn, '#', '%23', [rfReplaceAll]);
|
||||
+ Wrkprocess.Parameters.Add(fn);
|
||||
+ WrkProcess.Executable:=cmd;
|
||||
|
||||
- WrkProcess:=TProcess.Create(nil);
|
||||
try
|
||||
- WrkProcess.Options:=[poNoConsole];
|
||||
- WrkProcess.CommandLine:=cmd + ' "' + fn + '"';
|
||||
WrkProcess.Execute;
|
||||
Result:=WrkProcess.ExitStatus;
|
||||
finally
|
@ -0,0 +1,11 @@ |
||||
[Desktop Entry] |
||||
Encoding=UTF-8 |
||||
Name=Transmission Remote GUI |
||||
GenericName=TransGUI |
||||
Comment=Cross platform remote GUI for the Transmission daemon |
||||
Exec=/usr/bin/transgui |
||||
Icon=/usr/share/pixmaps/transgui.png |
||||
Terminal=false |
||||
Type=Application |
||||
Categories=Network;FileTransfer;P2P;GTK; |
||||
|
@ -0,0 +1,11 @@ |
||||
post_install() { |
||||
update-desktop-database -q |
||||
} |
||||
|
||||
post_upgrade() { |
||||
post_install |
||||
} |
||||
|
||||
post_remove() { |
||||
post_install |
||||
} |
Loading…
Reference in new issue