summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzxp198210052024-01-19 13:46:31 +0800
committerzxp198210052024-01-19 13:46:31 +0800
commit6dd440a9beacc88dc55c737dfe09e69dc9e77a57 (patch)
treed6bfa5fb7293bedd04a781681abd6ea782d2ee88 /PKGBUILD
parent5135578034f62c83cf39a321266271fd7e790dd1 (diff)
downloadpackages-6dd440a9beacc88dc55c737dfe09e69dc9e77a57.tar.gz
packages-6dd440a9beacc88dc55c737dfe09e69dc9e77a57.tar.bz2
packages-6dd440a9beacc88dc55c737dfe09e69dc9e77a57.zip
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5569255..416e9c6 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=2 8pkgrel=3
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=('BSD') 13license=('LicenseRef-BSD')
14conflicts=("${pkgname%-bin}") 14conflicts=("${pkgname%-bin}")
15provides=("${pkgname%-bin}=${pkgver}") 15provides=("${pkgname%-bin}=${pkgver}")
16depends=( 16depends=(
@@ -24,7 +24,7 @@ source=(
24) 24)
25sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23' 25sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23'
26 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5' 26 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5'
27 '8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84') 27 'd4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231')
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" \
@@ -32,14 +32,14 @@ build() {
32 -i "${srcdir}/${pkgname%-bin}.sh" 32 -i "${srcdir}/${pkgname%-bin}.sh"
33 bsdtar -xf "${srcdir}/data.tar.xz" 33 bsdtar -xf "${srcdir}/data.tar.xz"
34 sed -e "s|Name=${_appname}|Name=${_fullname}|g" \ 34 sed -e "s|Name=${_appname}|Name=${_fullname}|g" \
35 -e "s|/opt/${_appname}/${_pkgname} %U|${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" \
37 -i "${srcdir}/usr/share/applications/${_pkgname}.desktop" 37 -i "${srcdir}/usr/share/applications/${_pkgname}.desktop"
38} 38}
39package() { 39package() {
40 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" 40 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
41 install -Dm755 "${srcdir}/opt/${_appname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" 41 install -Dm644 "${srcdir}/opt/${_appname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
42 install -Dm644 "${srcdir}/opt/${_appname}/resources/app.asar.unpacked/external-assets/lcp.node" \ 42 install -Dm755 "${srcdir}/opt/${_appname}/resources/app.asar.unpacked/external-assets/lcp.node" \
43 -t "${pkgdir}/usr/lib/${pkgname%-bin}app.asar.unpacked/external-assets" 43 -t "${pkgdir}/usr/lib/${pkgname%-bin}app.asar.unpacked/external-assets"
44 for _icons in 256x256 512x512 1024x1024;do 44 for _icons in 256x256 512x512 1024x1024;do
45 install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \ 45 install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \