Andreas Radke pushed to branch main at Arch Linux / Packaging / Packages / 
nuspell


Commits:
71ae91ac by Andreas Radke at 2023-12-05T08:55:51+01:00
upgpkg: 5.1.3-2; rebuild with catch2-v2

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,17 @@
+pkgbase = nuspell
+       pkgdesc = Fast and safe spellchecking C++ library
+       pkgver = 5.1.3
+       pkgrel = 2
+       url = https://nuspell.github.io/
+       arch = x86_64
+       license = LGPL3
+       checkdepends = catch2-v2
+       makedepends = cmake
+       makedepends = pandoc
+       depends = icu
+       depends = glibc
+       depends = gcc-libs
+       source = 
nuspell-5.1.3.tar.gz::https://github.com/nuspell/nuspell/archive/v5.1.3.tar.gz
+       sha512sums = 
72c868f734848be79c7cfb0502298626307213e4f3f422f8e9ee7dac24cb3d79ea55d04ef0443e7107bb11eb545c79a15a8aea8cb056dc2805c23bd5e3292562
+
+pkgname = nuspell


=====================================
PKGBUILD
=====================================
@@ -3,40 +3,34 @@
 
 pkgname=nuspell
 pkgver=5.1.3
-pkgrel=1
+pkgrel=2
 pkgdesc='Fast and safe spellchecking C++ library'
 arch=('x86_64')
 url='https://nuspell.github.io/'
 license=('LGPL3')
 depends=('icu' 'glibc' 'gcc-libs')
 makedepends=('cmake' 'pandoc')
-checkdepends=('catch2')
+checkdepends=('catch2-v2')
 
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz";)
 
sha512sums=('72c868f734848be79c7cfb0502298626307213e4f3f422f8e9ee7dac24cb3d79ea55d04ef0443e7107bb11eb545c79a15a8aea8cb056dc2805c23bd5e3292562')
 
 # 1st rebuild enchant
 # 2nd rebuild epiphany against nuspell/enchant that checkdepens on both
 
-prepare() {
-  mkdir build
-}
-
 build() {
-  cd build
-  cmake ../${pkgbase}-${pkgver} \
+  cmake -B "${pkgname}-${pkgver}"/build \
+    -S ${pkgbase}-${pkgver} \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
     -DBUILD_SHARED_LIBS=ON
-  make
+  cmake --build "${pkgname}-${pkgver}"/build
 }
 
 check() {
-  cd build
-  make test
+  ctest --test-dir "${pkgname}-${pkgver}"/build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="${pkgdir}" cmake --install "${pkgname}-${pkgver}"/build
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nuspell/-/commit/71ae91ac4845eb1e840861095595cf3e5c0151e6

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nuspell/-/commit/71ae91ac4845eb1e840861095595cf3e5c0151e6
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to