summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorweearc2019-01-20 01:43:13 +0800
committerweearc2019-01-20 01:43:13 +0800
commit2cc50eb87f605aaeb365ed8ffb28ca4b2ffab7ff (patch)
tree4b2d74751594df38f2d161fc64fab0ea4e843e52 /PKGBUILD
parentfe4483a2cad36fb177d1a03e38042c16298aa695 (diff)
downloadaur-2cc50eb87f605aaeb365ed8ffb28ca4b2ffab7ff.tar.gz
simplify package.josn and changes basic aria2 configture
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0c98bb24062..d75a2cdf07c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=motrix
_pkgname=Motrix
pkgver=git20190120
-pkgrel=2
+pkgrel=4
epoch=
pkgdesc="elegent downloading tool frontend for aria2c,using vue"
arch=("x86_64")
@@ -22,9 +22,13 @@ backup=()
options=()
install=
changelog=
-source=("Motrix.desktop")
+source=("Motrix.desktop"
+ "aria2.conf"
+ "package.json")
noextract=()
-md5sums=(SKIP)
+md5sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
validpgpkeys=()
prepare() {
@@ -32,6 +36,7 @@ prepare() {
npm config set registry 'https://registry.npm.taobao.org'
export ELECTRON_MIRROR='https://npm.taobao.org/mirrors/electron/'
export SASS_BINARY_SITE='https://npm.taobao.org/mirrors/node-sass'
+ rm $_pkgname/package.json && mv ${srcdir}/package.json $_pkgname/.
}
@@ -50,5 +55,7 @@ package() {
echo -e "#!/bin/bash \n /opt/motrix/motrix" > ${pkgdir}/usr/bin/motrix
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
+ install -Dm 644 ${srcdir}/aria2.conf ${pkgdir}/opt/motrix/resources/engine/aria2.conf
rm -rf ${srcdir}
}