summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzxp198210052025-01-14 09:23:03 +0800
committerzxp198210052025-01-14 09:23:03 +0800
commit987697e5b9482ed19c7f8e903c0c633b497956f7 (patch)
treedc6c77702125e2bbeb960afa3fede1372425def0 /PKGBUILD
parent0c27e2d2ada1499c3c17b272f62dfba3fe703d7d (diff)
downloadaur-yarle-evernote-to-md-bin.tar.gz
update to 6.16.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 19951f339e86..edaf5b5fbf31 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=yarle-evernote-to-md-bin
-pkgver=6.15.2
+pkgver=6.16.0
_electronversion=22
pkgrel=1
pkgdesc="Yarle - The ultimate converter of Evernote notes to Markdown.(Prebuilt version.Use system-wide electron)"
@@ -13,14 +13,14 @@ depends=(
"electron${_electronversion}"
)
source=(
- "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_linux_amd64.deb"
+ "${pkgname%-bin}-${pkgver}.rpm::${url}/releases/download/v${pkgver}/${pkgname%-bin}_linux_${CARCH}.rpm"
"LICENSE-${pkgver}::https://raw.githubusercontent.com/akosbalasko/yarle/v${pkgver}/LICENSE"
"${pkgname%-bin}.sh"
)
-sha256sums=('eddd8bbc99e8eed8afe90a9a42c46f015888d1115e07ef13be8ad1de69381a38'
+sha256sums=('b8b2725c6e592748c5caeaf6a2ce20fba9c39bf32e82929e255a2a7833132260'
'16691c563f896a0d485a742fbd5a389fc7c798ff606c75cb3f753bb7297a9bdb'
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
-build() {
+prepare() {
sed -e "
s/@electronversion@/${_electronversion}/
s/@appname@/${pkgname%-bin}/
@@ -28,14 +28,14 @@ build() {
s/@cfgdirname@/${pkgname%-bin}/
s/@options@//
" -i "${srcdir}/${pkgname%-bin}.sh"
- bsdtar -xf "${srcdir}/data."*
- sed "s|/opt/${pkgname%-bin}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
+ sed -i "s/\/opt\/${pkgname%-bin}\/${pkgname%-bin}/${pkgname%-bin}/g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
- for _icons in 64x64 192x192 512x512;do
+ _icon_sizes=(64x64 192x192 512x512)
+ for _icons in "${_icon_sizes[@]}";do
install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \
-t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps"
done