Skip to content

Commit 21ff18d

Browse files
committed
add motrix for aarch64
1 parent b20f6c3 commit 21ff18d

File tree

6 files changed

+158
-0
lines changed

6 files changed

+158
-0
lines changed

alarmcn/electron22-bin/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.zip
2+
src/
3+
*.log
4+
pkg/
5+
*.pkg.*

alarmcn/electron22-bin/PKGBUILD

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Maintainer: Yurii Kolesnykov <[email protected]>
2+
# based on aur electron8-bin: Tom Vincent <http://tlvince.com/contact/>
3+
4+
_projectname=electron
5+
_major=22
6+
_pkgname="${_projectname}${_major}"
7+
pkgname="${_pkgname}"-bin
8+
_subver="3.7"
9+
_pkgver="${_major}.${_subver}"
10+
pkgver="${_pkgver/-/.}"
11+
pkgrel=1
12+
pkgdesc="Build cross platform desktop apps with web technologies - Binary version ${_major}"
13+
arch=('x86_64' 'aarch64')
14+
url=https://electronjs.org/
15+
license=('MIT' 'custom')
16+
depends=('c-ares' 'gtk3' 'libevent' 'nss' 'wayland')
17+
optdepends=('kde-cli-tools: file deletion support (kioclient5)'
18+
'libappindicator-gtk3: StatusNotifierItem support'
19+
'pipewire: WebRTC desktop sharing under Wayland'
20+
'qt5-base: enable Qt5 with --enable-features=AllowQt'
21+
'trash-cli: file deletion support (trash-put)'
22+
'xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open)')
23+
provides=("${_pkgname}=${pkgver}" "${_projectname}=${pkgver}")
24+
conflicts=("${_pkgname}")
25+
_releaseurl="https://github.com/${_projectname}/${_projectname}/releases/download/v${_pkgver}"
26+
source_x86_64=(
27+
"${pkgname}-chromedriver-${pkgver}-x86_64.zip::${_releaseurl}/chromedriver-v${_pkgver}-linux-x64.zip"
28+
"${pkgname}-${pkgver}-x86_64.zip::${_releaseurl}/${_projectname}-v${_pkgver}-linux-x64.zip"
29+
)
30+
source_aarch64=(
31+
"${pkgname}-chromedriver-${pkgver}-aarch64.zip::${_releaseurl}/chromedriver-v${_pkgver}-linux-arm64.zip"
32+
"${pkgname}-${pkgver}-aarch64.zip::${_releaseurl}/${_projectname}-v${_pkgver}-linux-arm64.zip"
33+
)
34+
sha256sums_x86_64=('03ac9d284f8102565981af295fc123866acf707379797655ab5bfbf7566dce00'
35+
'a04a8e95032e13808c6da3a244739edecbdb25e34accc8a8a53db257f225a5c9')
36+
sha256sums_aarch64=('2606c9c28c7f0ed71da82d3df93407695e2eb57b00306dfdbc769e5fe39c1cdc'
37+
'b5bbad04b7f0b646073e70d2abf5cef5708aa38f229604ca952dcc773c024609')
38+
39+
package() {
40+
install -dm755 "${pkgdir}/usr/lib/${_pkgname}/"
41+
find . -mindepth 1 -maxdepth 1 -type f ! -name "*.zip" ! -name "LICENSE*" -exec cp -r --no-preserve=ownership --preserve=mode -t "${pkgdir}/usr/lib/${_pkgname}/." {} +
42+
43+
for _folder in 'locales' 'resources'; do
44+
cp -r --no-preserve=ownership --preserve=mode "${_folder}/" "${pkgdir}/usr/lib/${_pkgname}/${_folder}/"
45+
done
46+
47+
chmod u+s "${pkgdir}/usr/lib/${_pkgname}/chrome-sandbox"
48+
49+
install -dm755 "${pkgdir}/usr/bin"
50+
ln -nfs "/usr/lib/${_pkgname}/${_projectname}" "${pkgdir}/usr/bin/${_pkgname}"
51+
52+
for _license in 'LICENSE' 'LICENSES.chromium.html'; do
53+
install -Dm644 "${_license}" "${pkgdir}/usr/share/licenses/${pkgname}/${_license}"
54+
done
55+
}

alarmcn/motrix/PKGBUILD

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Maintainer: zhullyb <zhullyb [at] outlook dot com>
2+
# Contributor: weearc <q19981121 [at] 163 dot com>
3+
# Contributor: JimMoen <LnJimMoen [at] outlook dot com>
4+
pkgname=motrix
5+
_pkgname=Motrix
6+
pkgver=1.8.19
7+
pkgrel=4
8+
epoch=
9+
pkgdesc="A full-featured download manager (release version)"
10+
arch=("aarch64")
11+
url="https://github.com/agalwood/Motrix"
12+
license=('MIT')
13+
groups=()
14+
depends=('gtk3' 'libxcb' 'electron22-bin')
15+
makedepends=('npm' 'yarn' 'nodejs' 'python')
16+
checkdepends=()
17+
optdepends=()
18+
provides=()
19+
conflicts=('motrix-git')
20+
replaces=()
21+
backup=()
22+
options=()
23+
install=
24+
changelog=
25+
source=("motrix.desktop"
26+
"motrix"
27+
"https://github.com/agalwood/Motrix/archive/v${pkgver}.tar.gz")
28+
noextract=()
29+
sha256sums=('c5f185162cdb83c387399e314be355585837a9efcd8ac35425656e4d24f7a5b3'
30+
'bb1432adbac2120ef5c59d718f1cd48ef5fc920d3d1231ba32390c700465f3a5'
31+
'd2a48692549d426e9dfa0fad9897dddf200b7b82198d59e64819d419114a10d8')
32+
validpgpkeys=()
33+
34+
#_ensure_local_nvm() {
35+
# let's be sure we are starting clean
36+
# which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload
37+
# export NVM_DIR="${srcdir}/.nvm"
38+
39+
# The init script returns 3 if version specified
40+
# in ./.nvrc is not (yet) installed in $NVM_DIR
41+
# but nvm itself still gets loaded ok
42+
# source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
43+
#}
44+
45+
#prepare() {
46+
# _ensure_local_nvm
47+
# nvm install 14
48+
#}
49+
50+
build() {
51+
cd ${srcdir}/${_pkgname}-${pkgver}
52+
# _ensure_local_nvm
53+
export YARN_CACHE_FOLDER="${srcdir}/yarn_cache"
54+
yarn
55+
yarn run build:dir
56+
}
57+
58+
package() {
59+
60+
install -Dm 644 ${srcdir}/${_pkgname}-${pkgver}/release/linux-unpacked/resources/app.asar ${pkgdir}/usr/lib/${pkgname}/app.asar
61+
install -Dm 755 ${srcdir}/${_pkgname}-${pkgver}/release/linux-unpacked/resources/engine/aria2c ${pkgdir}/usr/lib/${pkgname}/engine/aria2c
62+
install -Dm 644 ${srcdir}/${_pkgname}-${pkgver}/release/linux-unpacked/resources/engine/aria2.conf ${pkgdir}/usr/lib/${pkgname}/engine/aria2.conf
63+
64+
# binary wrapper
65+
install -Dm 775 ${srcdir}/motrix ${pkgdir}/usr/bin/${pkgname}
66+
67+
# desktop enrty
68+
install -Dm 644 ${srcdir}/motrix.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
69+
70+
# icons
71+
install -Dm 644 ${srcdir}/${_pkgname}-${pkgver}/build/256x256.png ${pkgdir}/usr/share/icons/${pkgname}.png
72+
}

alarmcn/motrix/lilac.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
maintainers:
2+
- github: zhullyb
3+
4+
pre_build_script: aur_pre_build(maintainers=['zhullyb'])
5+
6+
post_build: aur_post_build
7+
8+
update_on:
9+
- source: aur
10+
aur: motrix
11+
- source: manual
12+
manual: 1

alarmcn/motrix/motrix

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
export ELECTRON_IS_DEV=0
3+
exec /usr/bin/electron22 /usr/lib/motrix/app.asar "$@"

alarmcn/motrix/motrix.desktop

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Desktop Entry]
2+
Name=Motrix
3+
Comment=A full-featured download manager.
4+
Keywords=
5+
Exec=motrix &U
6+
TryExec=
7+
Terminal=false
8+
Icon=/usr/share/icons/motrix.png
9+
Type=Application
10+
StartupNotify=false
11+
Categories=Network;FileTransfer;

0 commit comments

Comments
 (0)