summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuildTools2015-09-22 12:15:24 -0700
committerBuildTools2015-09-22 12:15:24 -0700
commit62c60e4b8e4a800562a0d2cffa19f897245daa67 (patch)
tree346d6a6a43950e4f6160671d91e3dfd3c186b752
downloadaur-62c60e4b8e4a800562a0d2cffa19f897245daa67.tar.gz
init
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD51
-rw-r--r--hunspell-1.3.2-canonicalhost.patch11
4 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5c83bda592f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = mingw-w64-hunspell
+ pkgdesc = Spell checker and morphological analyzer library (mingw-w64)
+ pkgver = 1.3.3
+ pkgrel = 1
+ url = http://hunspell.sourceforge.net/
+ arch = any
+ license = GPL
+ license = LGPL
+ license = MPL
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-gettext
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = http://downloads.sourceforge.net/hunspell/hunspell-1.3.3.tar.gz
+ source = hunspell-1.3.2-canonicalhost.patch
+ md5sums = 4967da60b23413604c9e563beacc63b4
+ md5sums = f8a5c0f3692a390d98daf0406da59cdf
+
+pkgname = mingw-w64-hunspell
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..25cca9a92b3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.gz
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1fd0ddec932
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+pkgname=mingw-w64-hunspell
+pkgver=1.3.3
+pkgrel=1
+pkgdesc="Spell checker and morphological analyzer library (mingw-w64)"
+arch=(any)
+url="http://hunspell.sourceforge.net/"
+license=("GPL" "LGPL" "MPL")
+makedepends=(mingw-w64-configure)
+depends=(mingw-w64-gettext)
+options=(!strip !buildflags staticlibs)
+source=("http://downloads.sourceforge.net/hunspell/hunspell-$pkgver.tar.gz"
+"hunspell-1.3.2-canonicalhost.patch")
+md5sums=('4967da60b23413604c9e563beacc63b4'
+ 'f8a5c0f3692a390d98daf0406da59cdf')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+ cd hunspell-${pkgver}
+ patch -Np1 -i "$srcdir"/hunspell-1.3.2-canonicalhost.patch
+ autoreconf -fi
+}
+
+build() {
+ cd hunspell-${pkgver}
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure \
+ --disable-rpath \
+ --enable-threads=win32 \
+ --without-ui \
+ --without-readline \
+ --with-experimental
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/hunspell-${pkgver}/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir/usr/${_arch}" -name '*.exe' -exec rm {} \;
+ find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
+ find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
+ ln -s "/usr/${_arch}/lib/libhunspell-${pkgver%.*}.a" "$pkgdir/usr/${_arch}/lib/libhunspell.a"
+ ln -s "/usr/${_arch}/lib/libhunspell-${pkgver%.*}.dll.a" "$pkgdir/usr/${_arch}/lib/libhunspell.dll.a"
+ rm -r "$pkgdir/usr/${_arch}/share"
+ rm "$pkgdir/usr/${_arch}/bin/"{affixcompress,ispellaff2myspell,makealias,wordforms,wordlist2hunspell}
+ done
+}
diff --git a/hunspell-1.3.2-canonicalhost.patch b/hunspell-1.3.2-canonicalhost.patch
new file mode 100644
index 00000000000..959b59d4ff5
--- /dev/null
+++ b/hunspell-1.3.2-canonicalhost.patch
@@ -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)