diff options
author | zxp19821005 | 2023-09-09 02:13:43 +0800 |
---|---|---|
committer | zxp19821005 | 2023-09-09 02:13:43 +0800 |
commit | d498665d336c572944946cf6858f3f9f9734bcea (patch) | |
tree | 462beec4f0261743c80335b4c9a8c8d9fac6d1a7 | |
parent | e2e0271d8408b189d53dc99342bd30ac8c779229 (diff) | |
download | aur-d498665d336c572944946cf6858f3f9f9734bcea.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 13 insertions, 12 deletions
@@ -8,11 +8,10 @@ pkgbase = yana-bin depends = bash depends = electron10 depends = hicolor-icon-theme - provides = yana + provides = yana=1.0.16 conflicts = yana - conflicts = yana-appimage source = yana-1.0.16_amd64.deb::https://github.com/lukasbach/yana/releases/download/v1.0.16/yana_1.0.16_amd64.deb - source = LICENSE::https://raw.githubusercontent.com/lukasbach/yana/master/LICENSE + source = LICENSE::https://raw.githubusercontent.com/lukasbach/yana/v1.0.16/LICENSE source = yana.sh sha256sums = 00d2f30dad0342fa59fa228f087bf647cf2fa6fe061aa46ede22a5439d5c23b8 sha256sums = d51fa4278a4f3a6871df2e45a74a3a242f253b21e1ed655f7117d5dd45570a32 @@ -1,5 +1,6 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> -pkgname="yana-bin" +pkgname=yana-bin +_pkgname=Yana pkgver=1.0.16 pkgrel=3 pkgdesc="Powerful note-taking app with nested documents, full-text search, rich-text editor, code snippet editor and more" @@ -7,21 +8,22 @@ arch=("x86_64") url="https://yana.js.org/" _githuburl="https://github.com/lukasbach/yana" license=('MIT') +provides=("${pkgname%-bin}=${pkgver}") +conflicts=("${pkgname%-bin}") depends=('bash' 'electron10' 'hicolor-icon-theme') -provides=("${pkgname%-bin}") -conflicts=("${pkgname%-bin}" "${pkgname%-bin}-appimage") -source=( - "${pkgname%-bin}-${pkgver}_amd64.deb::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" - "LICENSE::https://raw.githubusercontent.com/lukasbach/yana/master/LICENSE" +source=("${pkgname%-bin}-${pkgver}_amd64.deb::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" + "LICENSE::https://raw.githubusercontent.com/lukasbach/yana/v${pkgver}/LICENSE" "${pkgname%-bin}.sh") sha256sums=('00d2f30dad0342fa59fa228f087bf647cf2fa6fe061aa46ede22a5439d5c23b8' 'd51fa4278a4f3a6871df2e45a74a3a242f253b21e1ed655f7117d5dd45570a32' '546e75b9012146cc72160fcd777d69ba3dd220bdd2c7178005c67f9d55617d3c') +prepare() { + bsdtar -xf "${srcdir}/data.tar.xz" + sed "s|/opt/${_pkgname}/${pkgname%-bin} %U|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" +} package() { - bsdtar -xf data.tar.xz - install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" install -Dm644 "${srcdir}/opt/Yana/resources/app.asar" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}.asar" - sed "s|/opt/Yana/yana %U|/opt/${pkgname%-bin}/${pkgname%-bin}|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 16x16 32x32 48x48 64x64 128x128 256x256 512x512;do install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ |