diff options
author | zxp19821005 | 2023-07-15 12:49:45 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-15 12:49:45 +0800 |
commit | bd1623bf01530f13a23057c3e0eb85df8b997cc2 (patch) | |
tree | 8215f29b6db3ac6834e6d72c53a80c51f919f262 | |
parent | fb78739f8d455aa9b58d111aee5cbbfd01dd19e1 (diff) | |
download | aur-bd1623bf01530f13a23057c3e0eb85df8b997cc2.tar.gz |
update to 5.2.1
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | yarle-evernote-to-md.sh | 8 |
3 files changed, 33 insertions, 35 deletions
@@ -1,39 +1,20 @@ pkgbase = yarle-evernote-to-md-bin pkgdesc = Yarle - The ultimate converter of Evernote notes to Markdown - pkgver = 5.2.0 + pkgver = 5.2.1 pkgrel = 1 url = https://github.com/akosbalasko/yarle arch = x86_64 license = MIT - depends = libxrandr - depends = libxkbcommon - depends = nss - depends = libxdamage - depends = glibc + depends = bash + depends = electron22 depends = hicolor-icon-theme - depends = libxcomposite - depends = libxext - depends = libxfixes - depends = libx11 - depends = gtk3 - depends = libdrm - depends = nspr - depends = cairo - depends = dbus - depends = libcups - depends = at-spi2-core - depends = glib2 - depends = alsa-lib - depends = expat - depends = pango - depends = gcc-libs - depends = libxcb - depends = mesa + provides = yarle-evernote-to-md conflicts = yarle-evernote-to-md - options = !strip - source = yarle-evernote-to-md-5.2.0.deb::https://github.com/akosbalasko/yarle/releases/download/v5.2.0/yarle-evernote-to-md_linux_amd64.deb + source = yarle-evernote-to-md-5.2.1.deb::https://github.com/akosbalasko/yarle/releases/download/v5.2.1/yarle-evernote-to-md_linux_amd64.deb source = LICENSE::https://raw.githubusercontent.com/akosbalasko/yarle/master/LICENSE - sha256sums = 8a8db2599c3c6a7a94ad9a5b3542c27ab386745c147958ebf6018e356a323d28 + source = yarle-evernote-to-md.sh + sha256sums = e5a19162be78088b8094b804e7e2d7b5e4ffd27adce9feda4803e3fa96b9d065 sha256sums = 16691c563f896a0d485a742fbd5a389fc7c798ff606c75cb3f753bb7297a9bdb + sha256sums = abfe6eb1eb8210af19a98509a662bc1a525e67f0275c51cb6b5d36226cf2b336 pkgname = yarle-evernote-to-md-bin @@ -1,20 +1,29 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=yarle-evernote-to-md-bin -pkgver=5.2.0 +pkgver=5.2.1 pkgrel=1 pkgdesc="Yarle - The ultimate converter of Evernote notes to Markdown" arch=(x86_64) url="https://github.com/akosbalasko/yarle" license=('MIT') -depends=('libxrandr' 'libxkbcommon' 'nss' 'libxdamage' 'glibc' 'hicolor-icon-theme' 'libxcomposite' 'libxext' 'libxfixes' 'libx11' \ - 'gtk3' 'libdrm' 'nspr' 'cairo' 'dbus' 'libcups' 'at-spi2-core' 'glib2' 'alsa-lib' 'expat' 'pango' 'gcc-libs' 'libxcb' 'mesa') +depends=('bash' 'electron22' 'hicolor-icon-theme') conflicts=("${pkgname%-bin}") -options=(!strip) +provides=("${pkgname%-bin}") source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_linux_amd64.deb" - "LICENSE::https://raw.githubusercontent.com/akosbalasko/yarle/master/LICENSE") -sha256sums=('8a8db2599c3c6a7a94ad9a5b3542c27ab386745c147958ebf6018e356a323d28' - '16691c563f896a0d485a742fbd5a389fc7c798ff606c75cb3f753bb7297a9bdb') + "LICENSE::https://raw.githubusercontent.com/akosbalasko/yarle/master/LICENSE" + "${pkgname%-bin}.sh") +sha256sums=('e5a19162be78088b8094b804e7e2d7b5e4ffd27adce9feda4803e3fa96b9d065' + '16691c563f896a0d485a742fbd5a389fc7c798ff606c75cb3f753bb7297a9bdb' + 'abfe6eb1eb8210af19a98509a662bc1a525e67f0275c51cb6b5d36226cf2b336') package() { - bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}" + bsdtar -xf "${srcdir}/data.tar.xz" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + install -Dm644 "${srcdir}/opt/${pkgname%-bin}/resources/app.asar" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + sed "s| %U||g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + for _icons in 64x64 192x192 512x512;do + install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps" + done install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" }
\ No newline at end of file diff --git a/yarle-evernote-to-md.sh b/yarle-evernote-to-md.sh new file mode 100644 index 000000000000..b9fae9a8c409 --- /dev/null +++ b/yarle-evernote-to-md.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron22 +_ASAR="/opt/yarle-evernote-to-md/yarle-evernote-to-md.asar" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi
\ No newline at end of file |