summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzxp198210052024-02-28 11:35:38 +0800
committerzxp198210052024-02-28 11:35:38 +0800
commitaed9d1e97e8312b299d8ff0ea653dc0b83869cd6 (patch)
tree6518f9faaaeccc53f8c2f37794d9660051a3d3bb
parent6dd440a9beacc88dc55c737dfe09e69dc9e77a57 (diff)
downloadpackages-aed9d1e97e8312b299d8ff0ea653dc0b83869cd6.tar.gz
packages-aed9d1e97e8312b299d8ff0ea653dc0b83869cd6.tar.bz2
packages-aed9d1e97e8312b299d8ff0ea653dc0b83869cd6.zip
fix errors
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD10
-rw-r--r--thorium-reader.sh9
3 files changed, 12 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ba21831..69c7d64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,10 @@
1pkgbase = thorium-reader-bin 1pkgbase = thorium-reader-bin
2 pkgdesc = Cross-platform desktop reading app based on the Readium Desktop toolkit 2 pkgdesc = Cross-platform desktop reading app based on the Readium Desktop toolkit
3 pkgver = 2.3.0 3 pkgver = 2.3.0
4 pkgrel = 3 4 pkgrel = 4
5 url = https://www.edrlab.org/software/thorium-reader/ 5 url = https://www.edrlab.org/software/thorium-reader/
6 arch = x86_64 6 arch = x86_64
7 license = LicenseRef-BSD 7 license = BSD-3-Clause
8 depends = electron25 8 depends = electron25
9 depends = hicolor-icon-theme 9 depends = hicolor-icon-theme
10 provides = thorium-reader=2.3.0 10 provides = thorium-reader=2.3.0
@@ -14,6 +14,6 @@ pkgbase = thorium-reader-bin
14 source = thorium-reader.sh 14 source = thorium-reader.sh
15 sha256sums = 1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23 15 sha256sums = 1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23
16 sha256sums = e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5 16 sha256sums = e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5
17 sha256sums = d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231 17 sha256sums = 0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014
18 18
19pkgname = thorium-reader-bin 19pkgname = thorium-reader-bin
diff --git a/PKGBUILD b/PKGBUILD
index 416e9c6..a73c9ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,12 +5,12 @@ _appname=Thorium
5_fullname="${_appname}Reader" 5_fullname="${_appname}Reader"
6pkgver=2.3.0 6pkgver=2.3.0
7_electronversion=25 7_electronversion=25
8pkgrel=3 8pkgrel=4
9pkgdesc="Cross-platform desktop reading app based on the Readium Desktop toolkit" 9pkgdesc="Cross-platform desktop reading app based on the Readium Desktop toolkit"
10arch=('x86_64') 10arch=('x86_64')
11url="https://www.edrlab.org/software/thorium-reader/" 11url="https://www.edrlab.org/software/thorium-reader/"
12_ghurl="https://github.com/edrlab/thorium-reader" 12_ghurl="https://github.com/edrlab/thorium-reader"
13license=('LicenseRef-BSD') 13license=('BSD-3-Clause')
14conflicts=("${pkgname%-bin}") 14conflicts=("${pkgname%-bin}")
15provides=("${pkgname%-bin}=${pkgver}") 15provides=("${pkgname%-bin}=${pkgver}")
16depends=( 16depends=(
@@ -24,13 +24,13 @@ source=(
24) 24)
25sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23' 25sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23'
26 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5' 26 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5'
27 'd4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231') 27 '0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014')
28build() { 28build() {
29 sed -e "s|@electronversion@|${_electronversion}|" \ 29 sed -e "s|@electronversion@|${_electronversion}|" \
30 -e "s|@appname@|${pkgname%-bin}|g" \ 30 -e "s|@appname@|${pkgname%-bin}|g" \
31 -e "s|@appasar@|app.asar|g" \ 31 -e "s|@runname@|app.asar|g" \
32 -i "${srcdir}/${pkgname%-bin}.sh" 32 -i "${srcdir}/${pkgname%-bin}.sh"
33 bsdtar -xf "${srcdir}/data.tar.xz" 33 bsdtar -xf "${srcdir}/data."*
34 sed -e "s|Name=${_appname}|Name=${_fullname}|g" \ 34 sed -e "s|Name=${_appname}|Name=${_fullname}|g" \
35 -e "s|/opt/${_appname}/${_pkgname}|${pkgname%-bin}|g" \ 35 -e "s|/opt/${_appname}/${_pkgname}|${pkgname%-bin}|g" \
36 -e "s|Icon=${_pkgname}|Icon=${pkgname%-bin}|g" \ 36 -e "s|Icon=${_pkgname}|Icon=${pkgname%-bin}|g" \
diff --git a/thorium-reader.sh b/thorium-reader.sh
index aacd8f8..f9ced14 100644
--- a/thorium-reader.sh
+++ b/thorium-reader.sh
@@ -1,15 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3_APPDIR="/usr/lib/@appname@" 3_APPDIR="/usr/lib/@appname@"
4_ASAR="${_APPDIR}/@appasar@" 4_RUNNAME="${_APPDIR}/@runname@"
5export PATH="${_APPDIR}:${PATH}" 5export PATH="${_APPDIR}:${PATH}"
6export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" 6export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
7export ELECTRON_IS_DEV=0 7export ELECTRON_IS_DEV=0
8export NODE_ENV=production 8export NODE_ENV=production
9cd "${_APPDIR}" 9cd "${_APPDIR}"
10if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then 10if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
11 exec electron@electronversion@ "${_ASAR}" "$@" 11 exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $?
12else 12else
13 exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" 13 exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $?
14fi 14fi \ No newline at end of file
15exit \ No newline at end of file