blob: 09fa5d016c58b34f519590ee53cfe9ee46759256 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Jack Chen <redchenjs@live.com>
pkgname=motrix-bin
pkgver=1.4.1
pkgrel=2
pkgdesc='elegent downloading tool frontend for aria2c, using vue (binary version)'
arch=('x86_64')
url='https://motrix.app/'
license=('MIT')
conflicts=(
'motrix'
'motrix-git'
)
makedepends=(
'p7zip'
)
depends=(
'gtk3'
'libxcb'
)
source=(
'https://dl.motrix.app/release/Motrix-'${pkgver}'-x86_64.AppImage'
)
md5sums=(
'96f2aea1332517fb645347d5033fbabf'
)
package() {
7z x Motrix-${pkgver}-x86_64.AppImage -o${pkgdir}/opt/Motrix/
chmod -R 755 ${pkgdir}/opt/
for i in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512 1024x1024; do
install -Dm644 ${pkgdir}/opt/Motrix/usr/share/icons/hicolor/$i/apps/motrix.png \
${pkgdir}/usr/share/icons/hicolor/$i/apps/motrix.png
done
sed -i 's/Exec=AppRun/Exec=\/opt\/Motrix\/motrix/' ${pkgdir}/opt/Motrix/motrix.desktop
install -Dm644 ${pkgdir}/opt/Motrix/motrix.desktop ${pkgdir}/usr/share/applications/motrix.desktop
install -Dm644 ${pkgdir}/opt/Motrix/usr/share/mime/motrix.xml ${pkgdir}/usr/share/mime/application/motrix.xml
mkdir -p ${pkgdir}/usr/bin
ln -s /opt/Motrix/motrix ${pkgdir}/usr/bin/motrix
rm ${pkgdir}/opt/Motrix/AppRun
rm ${pkgdir}/opt/Motrix/motrix.png
rm ${pkgdir}/opt/Motrix/motrix.desktop
rm -r ${pkgdir}/opt/Motrix/usr/
}
|