blob: 77738b44c5590ce3cbfe868d074553f14df78660 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_appname=aero
pkgname="${_appname}-browser"
_pkgname="AeroBrowser"
pkgver=0.2.2_alpha
pkgrel=1
pkgdesc="A fast and lightweight web browser made with electron and react that allows you to navigate the Internet with ease."
arch=(
'aarch64'
'x86_64'
)
url="https://aero-mymeiy532-frostbreker.vercel.app/"
_ghurl="https://github.com/FrostBreker/Aero"
license=('MIT')
conflicts=(
"${pkgname}"
)
provides=(
"${pkgname}"
)
depends=(
'gtk3'
'expat'
'libxkbcommon'
'alsa-lib'
'libcups'
'at-spi2-core'
'nspr'
'libxrandr'
'libx11'
'libdrm'
'libxcomposite'
'mesa'
'libxext'
'nss'
'cairo'
'libxdamage'
'libxfixes'
'libxcb'
'pango'
)
makedepends=(
'gendesk'
'git'
'npm'
'nodejs'
)
source=(
"${pkgname}-${pkgver}"::"git+${_ghurl}.git#tag=v${pkgver//_/-}"
)
sha256sums=('SKIP')
build() {
gendesk -q -f -n --comment "${pkgdesc}" --categories "Network" --pkgname "${_appname}-browser" --name "${_pkgname}" --exec "${pkgname} --no-sandbox %U"
cd "${srcdir}/${pkgname}-${pkgver}"
sed "s|https://www.google.fr/|about:blank|g" -i src/App.js
npm install --cache "${srcdir}/npm-cache"
npm run electron:package:linux
}
package() {
install -Dm755 -d "${pkgdir}/"{opt/"${pkgname}",usr/bin}
if [ "${CARCH}" == "aarch64" ];then
_osarch=linux-armv7l-unpacked
elif [ "${CARCH}" == "x86_64" ];then
_osarch=linux-unpacked
fi
cp -r "${srcdir}/${pkgname}-${pkgver}/dist/${_osarch}/"* "${pkgdir}/opt/${pkgname}"
ln -sf "/opt/${pkgname}/${_appname}" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/build/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE.MD" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|