blob: 4c6c79427ec69a2e01d86676333811b4384650b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Archisman Panigrahi <apandada1ATgmail.com>
# Thanks to: MareDevi <maredevi at foxmail dot com>
pkgname=readest
_Packagename=Readest
pkgver=0.9.36
pkgrel=1
pkgdesc="Modern, feature-rich ebook reader designed for avid readers offering seamless cross-platform access, powerful tools, and an intuitive interface"
arch=('x86_64' 'aarch64' 'i686')
url='https://github.com/readest/readest'
license=('AGPL-3.0-or-later')
depends=(
'cairo'
'desktop-file-utils'
'gcc-libs'
'gdk-pixbuf2'
'glib2'
'glibc'
'gtk3'
'hicolor-icon-theme'
'libsoup3'
'openssl'
'pango'
'webkit2gtk-4.1'
'gst-plugins-good'
)
makedepends=('git' 'openssl' 'librsvg' 'pnpm' 'nodejs' 'rust')
conflicts=('readest-bin' 'readest-deb' 'readest-git')
source=("git+$url.git#tag=v$pkgver")
sha256sums=('SKIP')
options=(!lto) # Disable Link Time Optimization. Otherwise build fails with some 'cc' linking error.
prepare() {
cd $pkgname
git submodule update --init --recursive
pnpm install
pnpm --filter @readest/readest-app setup-pdfjs
# Disable updater artifacts in tauri.conf.json
# Otherwise it will try to sign the built package with developer's GPG key which is unnecessary,
# and then it causes build failure because the GPG key is not available in the build environment.
# Also the updater artifacts are not needed for the AUR package.
# For more details, see https://github.com/tauri-apps/tauri/issues/13259
sed -i 's/"createUpdaterArtifacts": true/"createUpdaterArtifacts": false/' \
apps/$pkgname-app/src-tauri/tauri.conf.json
}
build() {
cd $pkgname
pnpm tauri build -b deb
}
package() {
cp -a $pkgname/target/release/bundle/deb/$_Packagename_*/data/* "${pkgdir}"
}
|