Add hunspell package.
This commit is contained in:
53
mingw-w64-hunspell/PKGBUILD
Normal file
53
mingw-w64-hunspell/PKGBUILD
Normal file
@@ -0,0 +1,53 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
|
||||
_realname=hunspell
|
||||
_mingw_suff=mingw-w64-${CARCH}
|
||||
pkgname="${_mingw_suff}-${_realname}"
|
||||
pkgver=1.3.2
|
||||
pkgrel=1
|
||||
pkgdesc="Spell checker and morphological analyzer library and program (mingw-w64)"
|
||||
arch=('any')
|
||||
url="http://hunspell.sourceforge.net/"
|
||||
license=("BSD")
|
||||
makedepends=("${_mingw_suff}-gcc" "${_mingw_suff}-ncurses" "${_mingw_suff}-pkg-config")
|
||||
depends=(${_mingw_suff}-winpthreads
|
||||
${_mingw_suff}-readline
|
||||
${_mingw_suff}-gettext)
|
||||
options=('!libtool' 'strip')
|
||||
source=("http://download.sourceforge.net/${_realname}/${_realname}-$pkgver.tar.gz"
|
||||
"hunspell-1.3.2-canonicalhost.patch")
|
||||
md5sums=('3121aaf3e13e5d88dfff13fb4a5f1ab8'
|
||||
'f8a5c0f3692a390d98daf0406da59cdf')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/${_realname}-$pkgver"
|
||||
patch -Np1 -i "$srcdir/hunspell-1.3.2-canonicalhost.patch"
|
||||
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
mkdir -p "${srcdir}/${_realname}-${pkgver}-build-${CARCH}"
|
||||
cd "${srcdir}/${_realname}-${pkgver}-build-${CARCH}"
|
||||
|
||||
CFLAGS+=" -I${MINGW_PREFIX}/include/ncursesw"
|
||||
CXXFLAGS+=" -I${MINGW_PREFIX}/include/ncursesw"
|
||||
${srcdir}/${_realname}-${pkgver}/configure \
|
||||
--build=${MINGW_CHOST} \
|
||||
--host=${MINGW_CHOST} \
|
||||
--target=${MINGW_CHOST} \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--disable-rpath \
|
||||
--enable-threads=win32 \
|
||||
--with-ui \
|
||||
--with-readline
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}-build-${CARCH}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
cp ${pkgdir}${MINGW_PREFIX}/lib/lib${_realname}-${pkgver%.*}.dll.a ${pkgdir}${MINGW_PREFIX}/lib/lib${_realname}.dll.a
|
||||
}
|
||||
11
mingw-w64-hunspell/hunspell-1.3.2-canonicalhost.patch
Normal file
11
mingw-w64-hunspell/hunspell-1.3.2-canonicalhost.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- hunspell-1.3.2/configure.ac 2011-02-16 15:41:44.000000000 +0100
|
||||
+++ hunspell-1.3.2/configure.ac 2012-09-07 08:56:36.670836839 +0200
|
||||
@@ -6,7 +6,7 @@
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([hunspell],[1.3.2],[nemeth@numbertext.org])
|
||||
|
||||
-AC_CANONICAL_SYSTEM
|
||||
+AC_CANONICAL_HOST
|
||||
AC_SUBST(XFAILED)
|
||||
|
||||
AM_INIT_AUTOMAKE(hunspell, 1.3.2)
|
||||
Reference in New Issue
Block a user