[arch-commits] Commit in nuspell/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Dec 12 16:51:35 UTC 2020


    Date: Saturday, December 12, 2020 @ 16:51:35
  Author: felixonmars
Revision: 404129

archrelease: copy trunk to staging-x86_64

Added:
  nuspell/repos/staging-x86_64/
  nuspell/repos/staging-x86_64/PKGBUILD
    (from rev 404128, nuspell/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: nuspell/repos/staging-x86_64/PKGBUILD (from rev 404128, nuspell/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-12-12 16:51:35 UTC (rev 404129)
@@ -0,0 +1,43 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Conributor: Mélanie Chauvel (ariasuni) <perso at hack-libre dot org>
+
+pkgname=nuspell
+pkgver=4.1.0
+pkgrel=3
+pkgdesc='Fast and safe spellchecking C++ library'
+arch=('x86_64')
+url='https://nuspell.github.io/'
+license=('LGPL3')
+depends=('boost-libs' 'icu')
+makedepends=('cmake' 'boost' 'catch2' 'ruby-ronn')
+source=("https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz"
+        ${pkgname}-pandoc.patch::https://github.com/nuspell/nuspell/commit/5d4f685011b2.patch)
+sha512sums=('d0c01dd73fefd8b9c800e6419fe916e55a53b8b19f5848d3766cdcb50383fdcd9e9bb49362b5cea4d9d2d7fda21aed055f28cb47b006e2049b2a904355f7f9ed'
+            'ca695c84df83e6df5a096017da91fa02ee4262acd45a66a111b9091ba9120defe67df2dad18c13d14ab2d211b83d58527d223791e948a0100d65d97eea5daf43')
+
+prepare() {
+  mkdir build
+  # temporarily use ronn during the boost 1.75.0 rebuild;
+  # pandoc is unusable due to a separate haskell rebuild
+  patch -Rp1 -d ${pkgbase}-${pkgver} <${pkgname}-pandoc.patch
+}
+
+build() {
+  cd build
+  cmake ../${pkgbase}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DBUILD_SHARED_LIBS=ON
+  make
+}
+
+check() {
+  cd build
+  make test
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list