blob: c615cc41a8d70d5c8d5a8bab3e93b054d2e2d0d6 (
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
|
# Maintainer: Jérôme Launay <jerome@projet-libre.org>
pkgname=cr2xt-git
pkgver=0.9.0.r1.078e184
pkgrel=1
pkgdesc='E-book to XTC format converter based on Cool Reader and crengine.'
arch=(x86_64)
url=https://github.com/CrazyCoder/cr2xt
license=(GPL-2.0-only)
depends=(qt6-base zlib libpng libjpeg-turbo libwebp freetype2 harfbuzz fribidi libunibreak zstd libutf8proc fontconfig hicolor-icon-theme)
makedepends=(git cmake qt6-tools)
provides=(cr2xt)
conflicts=(crqt-ng crqt-ng-git crengine-ng crengine-ng-git)
source=("git+${url}.git")
sha256sums=(SKIP)
pkgver() {
cd "$srcdir/cr2xt"
git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/cr2xt"
git submodule update --init --recursive
}
prepare() {
repo="${srcdir}/cr2xt"
git -C $repo submodule init
git -C $repo -c protocol.file.allow=always submodule update
}
build() {
cmake -B build -S "$srcdir/cr2xt" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_QT=QT6 \
-DUSE_COLOR_BACKBUFFER=OFF \
-DGRAY_BACKBUFFER_BITS=2 \
-DCRE_BUILD_SHARED=ON \
-DCRE_BUILD_STATIC=OFF
cmake --build build
}
package() {
make -C build DESTDIR="$pkgdir/" install
ln -s /usr/bin/crqt "$pkgdir/usr/bin/cr2xt"
}
|