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

Felix Yan felixonmars at gemini.archlinux.org
Sun Nov 21 22:49:45 UTC 2021


    Date: Sunday, November 21, 2021 @ 22:49:45
  Author: felixonmars
Revision: 428825

archrelease: copy trunk to staging-x86_64

Added:
  enchant/repos/staging-x86_64/
  enchant/repos/staging-x86_64/PKGBUILD
    (from rev 428824, enchant/trunk/PKGBUILD)

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

Copied: enchant/repos/staging-x86_64/PKGBUILD (from rev 428824, enchant/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-11-21 22:49:45 UTC (rev 428825)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: dorphell <dorphell at archlinux.org>
+
+pkgname=enchant
+pkgver=2.3.1
+pkgrel=2
+pkgdesc="A wrapper library for generic spell checking"
+arch=('x86_64')
+url="https://abiword.github.io/enchant/"
+license=('LGPL')
+depends=('glib2')
+makedepends=('aspell' 'hunspell' 'hspell' 'nuspell' 'libvoikko')
+checkdepends=('unittestpp')
+optdepends=('aspell: for aspell based spell checking support'
+            'hunspell: for hunspell based spell checking support'
+            'libvoikko: for libvoikko based spell checking support'
+            'hspell: for hspell based spell checking support'
+            'nuspell: for nuspell based spell checking support')
+provides=('libenchant-2.so') # enchant_voikko.so enchant_nuspell.so enchant_hunspell.so enchant_hspell.so enchant_aspell.so)
+source=("https://github.com/AbiWord/enchant/releases/download/v$pkgver/enchant-$pkgver.tar.gz")
+sha512sums=('c6fb8498d34a55040c2791124c2975952497e5a1b8999958691279b1a60a37473a1d2e3e11504f7cc877370be7772c2db621022040ea7035b21e40e8367606f5')
+
+prepare() {
+  cd $pkgname-$pkgver
+  autoreconf -vfi
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr \
+    --disable-static \
+    --enable-relocatable
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list