blob: 18d7a87b23300881643f87cc6491973e1cfb3f00 (
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
|
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Maintainer: soloturn@gmail.com
# Contributor: Ivan Naumeiko <Ivan.Naumeiko AT gmail DOT com>
pkgname=knownreader
pkgver=20220407
pkgrel=1
pkgdesc='Fast and small XML/CSS based eBook reader'
arch=('x86_64')
url='https://github.com/plotn/coolreader'
license=('GPL2')
depends=('fribidi' 'hicolor-icon-theme' 'libunibreak' 'qt5-base')
makedepends=('cmake' 'ninja' 'qt5-tools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/plotn/coolreader/archive/refs/tags/$pkgver.tar.gz")
sha256sums=(
'SKIP'
)
build() {
cmake coolreader-$pkgver -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DGUI=QT5 \
-DMAX_IMAGE_SCALE_MUL=2 \
-DDOC_DATA_COMPRESSION_LEVEL=3 \
-DDOC_BUFFER_SIZE=0x140000
cmake --build build
}
package() {
cd build
DESTDIR="${pkgdir}" ninja install
}
|