Date: Tuesday, June 30, 2020 @ 23:30:49
  Author: bgyorgy
Revision: 657212

archrelease: copy trunk to community-x86_64

Added:
  coolreader/repos/
  coolreader/repos/community-x86_64/
  coolreader/repos/community-x86_64/PKGBUILD
    (from rev 657211, coolreader/trunk/PKGBUILD)
  coolreader/repos/community-x86_64/cr3.appdata.xml
    (from rev 657211, coolreader/trunk/cr3.appdata.xml)

-----------------+
 PKGBUILD        |   41 +++++++++++++++++++++++++++++++++++++++++
 cr3.appdata.xml |   30 ++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

Copied: coolreader/repos/community-x86_64/PKGBUILD (from rev 657211, 
coolreader/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD                             (rev 0)
+++ repos/community-x86_64/PKGBUILD     2020-06-30 23:30:49 UTC (rev 657212)
@@ -0,0 +1,41 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Ivan Naumeiko <Ivan.Naumeiko  AT gmail DOT com>
+
+pkgname=coolreader
+pkgver=3.2.39
+pkgrel=1
+pkgdesc="Fast and small XML/CSS based eBook reader"
+arch=(x86_64)
+url="https://github.com/buggins/coolreader";
+license=(GPL2)
+depends=(hicolor-icon-theme qt5-base)
+makedepends=(cmake qt5-tools)
+source=(https://github.com/buggins/coolreader/archive/cr$pkgver/$pkgname-$pkgver.tar.gz
+        cr3.appdata.xml)
+sha256sums=('c3fca255e887b745a684b4402f74f560ba2dd73229bbca5416bbd5cb8635da28'
+            '9d868cfd61b686b5a398797819367f16d7a65f1f5420441fb34c8d39236f7382')
+
+prepare() {
+  [[ -d build ]] || mkdir build
+
+  cd $pkgname-cr$pkgver
+  sed -i 's|src/desktop/cr3.png DESTINATION share/pixmaps|src/desktop/cr3.png 
DESTINATION share/icons/hicolor/32x32/apps|
+          s|src/desktop/cr3.xpm DESTINATION share/pixmaps|src/icons/cr3.png 
DESTINATION share/icons/hicolor/48x48/apps|' cr3qt/CMakeLists.txt
+}
+
+build() {
+  cd build
+  cmake -G "Unix Makefiles" ../$pkgname-cr$pkgver/ \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DGUI=QT5 \
+    -DMAX_IMAGE_SCALE_MUL=2 \
+    -DDOC_DATA_COMPRESSION_LEVEL=3 \
+    -DDOC_BUFFER_SIZE=0x140000
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+  install -Dm644 ../cr3.appdata.xml 
"$pkgdir/usr/share/metainfo/cr3.appdata.xml"
+}

Copied: coolreader/repos/community-x86_64/cr3.appdata.xml (from rev 657211, 
coolreader/trunk/cr3.appdata.xml)
===================================================================
--- repos/community-x86_64/cr3.appdata.xml                              (rev 0)
+++ repos/community-x86_64/cr3.appdata.xml      2020-06-30 23:30:49 UTC (rev 
657212)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+  <id>cr3.desktop</id>
+  <name>CoolReader</name>
+  <project_license>GPL-2.0</project_license>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>
+    Cross platform open source e-book reader
+  </summary>
+  <description>
+    <p>
+      CoolReader is fast and small cross-platform XML/CSS based eBook reader
+      for desktops and handheld devices. Supported formats: FB2, TXT, RTF,
+      DOC, TCR, HTML, EPUB, CHM, PDB, MOBI.
+    </p>
+    <p>
+      Supports table of contents, search, bookmarks.
+    </p>
+    <p>
+      Supports window and fullscreen modes, paperbook-like pages or scroll 
view.
+      Book formatting is customizable using CSS files.
+    </p>
+  </description>
+  <url type="homepage">https://github.com/buggins/coolreader</url>
+  <screenshots>
+    <screenshot type="default">
+      
<image>https://gist.github.com/avsej/eaea5ae3d5ed045261e9f36d2c9964b5/raw/d251fab97400a8d708c01d51018ca7925e75e971/screenshot-2019-02-24_10-09-26.1550992166.png</image>
+    </screenshot>
+  </screenshots>
+</component>

Reply via email to