diff options
author | zxp19821005 | 2024-01-24 18:45:56 +0800 |
---|---|---|
committer | zxp19821005 | 2024-01-24 18:45:56 +0800 |
commit | 6d87c1d9d0b89e729026e8345ca22e25653ae387 (patch) | |
tree | 8fee86efcc8438e57968f16d2677692f1b992405 | |
parent | 764b56e0883601d6ac180243a80ff67289fa21db (diff) | |
download | aur-6d87c1d9d0b89e729026e8345ca22e25653ae387.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rw-r--r-- | csbooks.sh | 9 |
3 files changed, 17 insertions, 16 deletions
@@ -1,7 +1,7 @@ pkgbase = csbooks-bin pkgdesc = A smart book management and reading software,also a PDF reader, EPUB reader, MOBI reader and DJVU file reader. pkgver = 7.5.0 - pkgrel = 6 + pkgrel = 7 url = https://caesiumstudio.com/csbooks/ arch = x86_64 license = custom @@ -10,8 +10,10 @@ pkgbase = csbooks-bin provides = csbooks=7.5.0 conflicts = csbooks source = csbooks-bin-7.5.0.pacman::https://github.com/caesiumstudio/csBooks-updates/releases/download/latest/csBooks-7.5.0.pacman + source = LICENSE-7.5.0.html::https://caesiumstudio.com/eula/license source = csbooks.sh sha256sums = b1dfc2d6b137580b7bba60da5d97886369170f6b38b3154ad919847b9eca7afc - sha256sums = 5ce46265f0335b03568aa06f7b4c57c5f8ffade7a226489ea39796be91a511bf + sha256sums = e3b3003f395da5789a53b25e32f44d649524de7aad73cb79a1f48694f93ae8d5 + sha256sums = 1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8 pkgname = csbooks-bin @@ -1,9 +1,9 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=csbooks-bin -_appname=csBooks +_pkgname=csBooks pkgver=7.5.0 _electronversion=21 -pkgrel=6 +pkgrel=7 pkgdesc="A smart book management and reading software,also a PDF reader, EPUB reader, MOBI reader and DJVU file reader." arch=('x86_64') url="https://caesiumstudio.com/csbooks/" @@ -16,26 +16,28 @@ depends=( 'hicolor-icon-theme' ) source=( - "${pkgname}-${pkgver}.pacman::${_ghurl}/releases/download/latest/${_appname}-${pkgver}.pacman" + "${pkgname}-${pkgver}.pacman::${_ghurl}/releases/download/latest/${_pkgname}-${pkgver}.pacman" + "LICENSE-${pkgver}.html::https://caesiumstudio.com/eula/license" "${pkgname%-bin}.sh" ) sha256sums=('b1dfc2d6b137580b7bba60da5d97886369170f6b38b3154ad919847b9eca7afc' - '5ce46265f0335b03568aa06f7b4c57c5f8ffade7a226489ea39796be91a511bf') + 'e3b3003f395da5789a53b25e32f44d649524de7aad73cb79a1f48694f93ae8d5' + '1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8') build() { sed -e "s|@electronversion@|${_electronversion}|g" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@appasar@|app.asar|g" \ -i "${srcdir}/${pkgname%-bin}.sh" - sed "s|/opt/${_appname}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" + sed "s|/opt/${_pkgname}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" } package() { - install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" - install -Dm644 "${srcdir}/opt/${_appname}/resources/app.asar" "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm644 "${srcdir}/opt/${_pkgname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" install -Dm644 "${srcdir}/opt/${_pkgname}/swiftshader/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/swiftshader" install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" for _icons in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512 1024x1024;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}/opt/${_appname}/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 "${srcdir}/LICENSE-${pkgver}.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.html" }
\ No newline at end of file diff --git a/csbooks.sh b/csbooks.sh index c77c53567639..0d20cddc70ca 100644 --- a/csbooks.sh +++ b/csbooks.sh @@ -6,12 +6,9 @@ export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 export NODE_ENV=production +cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - cd "${_APPDIR}" - exec electron@electronversion@ "${_ASAR}" "$@" - exit + exec electron@electronversion@ "${_ASAR}" "$@" || exit $? else - cd "${_APPDIR}" - exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" - exit + exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |