[arch-commits] Commit in hunspell/trunk (PKGBUILD)
Andreas Radke
andyrtr at gemini.archlinux.org
Sat May 21 21:12:44 UTC 2022
Date: Saturday, May 21, 2022 @ 21:12:44
Author: andyrtr
Revision: 446409
upgpkg: hunspell 1.7.0-4: rebuild old package; fix FTBS
Modified:
hunspell/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-21 20:57:54 UTC (rev 446408)
+++ PKGBUILD 2022-05-21 21:12:44 UTC (rev 446409)
@@ -3,7 +3,7 @@
pkgname=hunspell
pkgver=1.7.0
-pkgrel=3
+pkgrel=4
pkgdesc="Spell checker and morphological analyzer library and program"
arch=('x86_64')
url="https://hunspell.github.io/"
@@ -10,11 +10,20 @@
license=('GPL' 'LGPL' 'MPL')
depends=('gcc-libs' 'readline')
optdepends=('perl: for ispellaff2myspell')
-source=($pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v${pkgver}.tar.gz)
-sha256sums=('bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a')
+source=($pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v${pkgver}.tar.gz
+ hunspell_buildfix.diff::https://github.com/hunspell/hunspell/commit/2f9e34d13312dbf705f7e1316ca364be13640e6c.patch
+ hunspell_buildfix2.diff::https://patch-diff.githubusercontent.com/raw/hunspell/hunspell/pull/762.patch)
+sha256sums=('bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a'
+ 'SKIP'
+ 'SKIP')
prepare() {
cd hunspell-$pkgver
+
+ # build fix
+ patch -Np1 -i ../hunspell_buildfix.diff
+ patch -Np1 -i ../hunspell_buildfix2.diff
+
autoreconf -vfi
}
@@ -22,6 +31,7 @@
cd hunspell-$pkgver
./configure --prefix=/usr --disable-static \
--with-ui --with-readline # --with-experimental breaks build in this release
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
More information about the arch-commits
mailing list