summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorweearc2019-02-17 15:33:36 +0800
committerweearc2019-02-17 15:33:36 +0800
commit235ec4009ebdd44662571ecd92b96a6a3b97e73a (patch)
tree6dfb2a9852cbd62c7c6b6dda2fb059d62621c056
parentd3d05e8fc00ad7e4bc237636dee85ed17a210a8f (diff)
downloadaur-235ec4009ebdd44662571ecd92b96a6a3b97e73a.tar.gz
update exec file
-rw-r--r--Motrix.desktop2
-rw-r--r--PKGBUILD9
-rwxr-xr-xmotrix8
3 files changed, 15 insertions, 4 deletions
diff --git a/Motrix.desktop b/Motrix.desktop
index d85d6380207..6c1d6eda2b4 100644
--- a/Motrix.desktop
+++ b/Motrix.desktop
@@ -2,7 +2,7 @@
Name=Motrix
Comment=download manager
Keywords=
-Exec=/opt/motrix/motrix
+Exec=/usr/bin/motrix
TryExec=
Terminal=false
Icon=/usr/share/icons/motrix.png
diff --git a/PKGBUILD b/PKGBUILD
index a5c5c22823d..f16b1940311 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,10 +25,12 @@ install=
changelog=
source=("Motrix.desktop"
"aria2.conf"
+ "motrix"
"Motrix.tar.gz"::"https://github.com/agalwood/Motrix/archive/v$_pkgver.tar.gz")
noextract=()
md5sums=('SKIP'
'SKIP'
+ 'SKIP'
'SKIP')
validpgpkeys=()
@@ -61,10 +63,11 @@ package() {
install -d ${pkgdir}/usr/share/applications
mv ${srcdir}/$_pkgname/release/linux-unpacked/ ${pkgdir}/opt/motrix
install -Dm644 ${srcdir}/$_pkgname/build/256x256.png ${pkgdir}/usr/share/icons/$pkgname.png
- echo -e "#!/bin/bash \n /opt/motrix/motrix" >> ${pkgdir}/usr/bin/motrix
- chmod a+x ${pkgdir}/usr/bin/motrix
+# echo -e "#!/bin/bash \n /opt/motrix/motrix" >> ${pkgdir}/usr/bin/motrix
+ install -Dm 777 ${srcdir}/motrix ${pkgdir}/usr/bin
+# chmod a+x ${pkgdir}/usr/bin/motrix
install -Dm 644 ${srcdir}/Motrix.desktop ${pkgdir}/usr/share/applications
-# rm ${pkgdir}/opt/motrix/resources/engine/aria2.conf
+ rm ${pkgdir}/opt/motrix/resources/engine/aria2.conf
install -Dm 644 ${srcdir}/aria2.conf ${pkgdir}/opt/motrix/resources/engine/aria2.conf
# ln -s /usr/bin/aria2c ${pkgdir}/opt/motrix/reources/engine/aria2
rm -rf ${srcdir}
diff --git a/motrix b/motrix
new file mode 100755
index 00000000000..abcf272a492
--- /dev/null
+++ b/motrix
@@ -0,0 +1,8 @@
+#!/bin/bash
+#!/bin/bash
+if [[ ! -f "/var/cache/aria2.session" ]]
+then
+ touch /var/cache/aria2.session;
+ chmod 666 /var/cache/aria2.session;
+fi
+exec /opt/motrix/motrix