summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzxp198210052023-12-13 18:43:27 +0800
committerzxp198210052023-12-13 18:43:27 +0800
commit5135578034f62c83cf39a321266271fd7e790dd1 (patch)
treee016b08294174fb65108dfc0576bccf3821be5ec /PKGBUILD
parent787dcd16dbf73e81d62cb1d73990ba7f778cfa9c (diff)
downloadpackages-5135578034f62c83cf39a321266271fd7e790dd1.tar.gz
packages-5135578034f62c83cf39a321266271fd7e790dd1.tar.bz2
packages-5135578034f62c83cf39a321266271fd7e790dd1.zip
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ffd9a55..5569255 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,8 @@ pkgname="${_pkgname}-reader-bin"
4_appname=Thorium 4_appname=Thorium
5_fullname="${_appname}Reader" 5_fullname="${_appname}Reader"
6pkgver=2.3.0 6pkgver=2.3.0
7pkgrel=1 7_electronversion=25
8pkgrel=2
8pkgdesc="Cross-platform desktop reading app based on the Readium Desktop toolkit" 9pkgdesc="Cross-platform desktop reading app based on the Readium Desktop toolkit"
9arch=('x86_64') 10arch=('x86_64')
10url="https://www.edrlab.org/software/thorium-reader/" 11url="https://www.edrlab.org/software/thorium-reader/"
@@ -13,19 +14,22 @@ license=('BSD')
13conflicts=("${pkgname%-bin}") 14conflicts=("${pkgname%-bin}")
14provides=("${pkgname%-bin}=${pkgver}") 15provides=("${pkgname%-bin}=${pkgver}")
15depends=( 16depends=(
16 'bash' 17 "electron${_electronversion}"
17 'electron25'
18 'hicolor-icon-theme' 18 'hicolor-icon-theme'
19) 19)
20source=( 20source=(
21 "${pkgname%-bin}-${pkgver}.deb::${_ghurl}/releases/download/v${pkgver}/EDRLab.${_fullname}_${pkgver}_amd64.deb" 21 "${pkgname%-bin}-${pkgver}.deb::${_ghurl}/releases/download/v${pkgver}/EDRLab.${_fullname}_${pkgver}_amd64.deb"
22 "LICENSE::https://raw.githubusercontent.com/edrlab/thorium-reader/v${pkgver}/LICENSE" 22 "LICENSE-${pkgver}::https://raw.githubusercontent.com/edrlab/thorium-reader/v${pkgver}/LICENSE"
23 "${pkgname%-bin}.sh" 23 "${pkgname%-bin}.sh"
24) 24)
25sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23' 25sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23'
26 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5' 26 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5'
27 'c6376c7762d524d36e463659d1b1a15870e8a57b1d8b257a8395072f04f97456') 27 '8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84')
28build() { 28build() {
29 sed -e "s|@electronversion@|${_electronversion}|" \
30 -e "s|@appname@|${pkgname%-bin}|g" \
31 -e "s|@appasar@|app.asar|g" \
32 -i "${srcdir}/${pkgname%-bin}.sh"
29 bsdtar -xf "${srcdir}/data.tar.xz" 33 bsdtar -xf "${srcdir}/data.tar.xz"
30 sed -e "s|Name=${_appname}|Name=${_fullname}|g" \ 34 sed -e "s|Name=${_appname}|Name=${_fullname}|g" \
31 -e "s|/opt/${_appname}/${_pkgname} %U|${pkgname%-bin}|g" \ 35 -e "s|/opt/${_appname}/${_pkgname} %U|${pkgname%-bin}|g" \
@@ -42,5 +46,5 @@ package() {
42 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" 46 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"
43 done 47 done
44 install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop" 48 install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
45 install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" 49 install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
46} \ No newline at end of file 50} \ No newline at end of file