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

Balló György bgyorgy at archlinux.org
Thu Jun 3 16:47:18 UTC 2021


    Date: Thursday, June 3, 2021 @ 16:47:17
  Author: bgyorgy
Revision: 955695

Minor changes

Modified:
  qtspell/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-03 16:06:02 UTC (rev 955694)
+++ PKGBUILD	2021-06-03 16:47:17 UTC (rev 955695)
@@ -3,31 +3,25 @@
 pkgname=qtspell
 pkgver=0.9.0
 pkgrel=1
-url="https://github.com/manisandro/qtspell"
-pkgdesc="Spell checking for Qt text widgets"
-arch=(x86_64)
-license=(GPL3)
-depends=(enchant iso-codes qt5-base)
-makedepends=(cmake qt5-tools)
-source=($pkgname-$pkgver.tar.gz::https://github.com/manisandro/$pkgname/archive/$pkgver.tar.gz)
+pkgdesc='Spell checking for Qt text widgets'
+arch=('x86_64')
+url='https://github.com/manisandro/qtspell'
+license=('GPL3')
+depends=('enchant' 'iso-codes' 'qt5-base')
+makedepends=('cmake' 'ninja' 'qt5-tools')
+source=("https://github.com/manisandro/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha256sums=('49a5ab995c3150572c3c48989cd3e506b0c2d64b09d80fb5b30daa7325445635')
 
 prepare() {
-  [[ -d build ]] || mkdir build
-  cd $pkgname-$pkgver
-
   # Fix location of translations
-  sed -i 's|share/${QT_VER}/translations)|share/qt/translations)|' CMakeLists.txt
+  sed -i 's|share/${QT_VER}/translations)|share/qt/translations)|' $pkgname-$pkgver/CMakeLists.txt
 }
 
 build() {
-  cd build
-  cmake -G "Unix Makefiles" ../$pkgname-$pkgver/ \
-    -DCMAKE_INSTALL_PREFIX=/usr
-  make
+  cmake -S $pkgname-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr'
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }



More information about the arch-commits mailing list