[arch-commits] Commit in coolreader/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu Jun 3 14:53:41 UTC 2021


    Date: Thursday, June 3, 2021 @ 14:53:41
  Author: bgyorgy
Revision: 955690

Minor changes

Modified:
  coolreader/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++-------------------
 1 file changed, 14 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-03 14:50:24 UTC (rev 955689)
+++ PKGBUILD	2021-06-03 14:53:41 UTC (rev 955690)
@@ -4,38 +4,33 @@
 pkgname=coolreader
 pkgver=3.2.57
 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 fribidi libunibreak)
-makedepends=(cmake qt5-tools)
-source=(https://github.com/buggins/coolreader/archive/cr$pkgver/$pkgname-$pkgver.tar.gz
-        cr3.appdata.xml)
+pkgdesc='Fast and small XML/CSS based eBook reader'
+arch=('x86_64')
+url='https://github.com/buggins/coolreader'
+license=('GPL2')
+depends=('fribidi' 'hicolor-icon-theme' 'libunibreak' 'qt5-base')
+makedepends=('cmake' 'ninja' 'qt5-tools')
+source=("https://github.com/buggins/coolreader/archive/cr$pkgver/$pkgname-$pkgver.tar.gz"
+        'cr3.appdata.xml')
 sha256sums=('069a9488a9cec20133c2e188b9eec2385e5fa29b523eede7bc381cde0373a0bf'
             '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
+          s|src/desktop/cr3.xpm DESTINATION share/pixmaps|src/icons/cr3.png DESTINATION share/icons/hicolor/48x48/apps|' $pkgname-cr$pkgver/cr3qt/CMakeLists.txt
 }
 
 build() {
-  cd build
-  cmake -G "Unix Makefiles" ../$pkgname-cr$pkgver/ \
-    -DCMAKE_INSTALL_PREFIX=/usr \
+  cmake -S $pkgname-cr$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
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
-  install -Dm644 ../cr3.appdata.xml "$pkgdir/usr/share/metainfo/cr3.appdata.xml"
+  DESTDIR="$pkgdir" cmake --install build
+  install -Dm644 cr3.appdata.xml "$pkgdir/usr/share/metainfo/cr3.appdata.xml"
 }



More information about the arch-commits mailing list