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

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 10 15:31:19 UTC 2021


    Date: Friday, December 10, 2021 @ 15:31:18
  Author: foutrelis
Revision: 431826

upgpkg: link-grammar 5.10.2-4: fix build with Python 3.10

Modified:
  link-grammar/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-10 15:18:40 UTC (rev 431825)
+++ PKGBUILD	2021-12-10 15:31:18 UTC (rev 431826)
@@ -3,7 +3,7 @@
 
 pkgname=link-grammar
 pkgver=5.10.2
-pkgrel=3
+pkgrel=4
 pkgdesc="A Grammar Checking library"
 arch=('x86_64')
 url="https://www.abisource.com/projects/link-grammar/"
@@ -17,6 +17,13 @@
 sha256sums=('28cec752eaa0e3897ae961333b6927459f8b69fefe68c2aa5272983d7db869b6'
             'SKIP')
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # Fix build with Python 3.10
+  sed -i '/test -n "$lg_python_unusable" && PythonFound=no/d' configure
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 



More information about the arch-commits mailing list