blob: c35493911088f4c9b96edf20bdd732e14a77c613 (
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
|
# Maintainer: Ren Tatsumoto <tatsu at autistici dot org>
# https://www.linux.org.ru/news/opensource/17078848?lastmod=1674731910604#comment-17086662
pkgname=crqt-ng
provides=(coolreader crqt-ng crqt-ng-git)
conflicts=(coolreader crqt-ng-git)
pkgver=1.0.14
_pkgver=${pkgver//_/-}
pkgrel=2
pkgdesc='Cross-platform open source e-book reader using crengine-ng.'
arch=('x86_64')
url='https://gitlab.com/coolreader-ng/crqt-ng'
license=('GPL-2')
depends=('crengine-ng' 'fribidi' 'hicolor-icon-theme' 'libunibreak' 'qt6-base')
makedepends=('cmake' 'qt6-tools' 'clang')
source=("https://gitlab.com/coolreader-ng/${pkgname}/-/archive/${_pkgver}/${pkgname}-${_pkgver}.tar.gz")
sha256sums=('e85d842386460ed1c7f51aca3fb355b28f58333c3d12e7ed1538aeaf4134b358')
build() {
cmake \
-B "build" \
-S "${pkgname}-${_pkgver}" \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DUSE_QT=QT6 \
-DCMAKE_BUILD_TYPE=Release
make -C "build" all
}
package() {
make -C "build" DESTDIR="$pkgdir" install
install -D -m644 "${pkgname}-${_pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
mkdir -p "${pkgdir}/usr/lib/" # temp fix
ln -s "/usr/lib/libunibreak.so" "${pkgdir}/usr/lib/libunibreak.so.5" # temp fix
}
|