blob: aceb57e42d1f7bf2af43e121c15d6dc39c20a7af (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=medikojs-client-bin
_pkgname=Mediko
pkgver=0.0.3
_subver=alpha
_electronversion=32
pkgrel=1
pkgdesc="A solution te help users store and analyze health data (body parameters, diet, medications schema).(Prebuild version.Use system-wide electron)"
arch=('x86_64')
url="https://github.com/rafalhogent/medikoJs"
license=('LicenseRef-unknown')
conflicts=("${pkgname%-bin}")
prodives=("${pkgname%-bin}=${pkgver}")
depends=(
"electron${_electronversion}"
)
source=(
"${pkgname%-bin}-${pkgver}.zip::${url}/releases/download/${_subver}/${pkgname%-bin}-v${pkgver}-${_subver}-linux-x64.zip"
"${pkgname%-bin}-${pkgver}.png::https://raw.githubusercontent.com/rafalhogent/medikoJs/${_subver}/client/public/icons/favicon-128x128.png"
"${pkgname%-bin}.desktop"
"${pkgname%-bin}.sh"
)
sha256sums=('f874116fe6e14a8aad1431f131152984bb826a151d65047fae8abd050f5d08cd'
'ce61a0d27e9167938ce2083e1391de1ee514b40d8a0f5c3602a7a04f449f6779'
'a2160c77557a10eebb69b2e0e3dbe775bc02be1a20cdd35bb06f8bcb298fa3ed'
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
build() {
sed -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
s/@runname@/app.asar/g
s/@cfgdirname@/${_pkgname}/g
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
" -i "${srcdir}/${pkgname%-bin}.sh"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/${_pkgname}-linux-x64/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}-${pkgver}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
}
|