summaryrefslogtreecommitdiff
path: root/user/enchant/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/enchant/APKBUILD')
-rw-r--r--user/enchant/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/enchant/APKBUILD b/user/enchant/APKBUILD
new file mode 100644
index 000000000..208b90171
--- /dev/null
+++ b/user/enchant/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=enchant
+pkgver=1.6.1
+pkgrel=0
+pkgdesc="A wrapper library for generic spell checking"
+url="https://abiword.github.io/enchant/"
+arch="all"
+options="!check" # We need to ship dictionaries before testing will work...
+license="LGPL-2.0+"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=""
+makedepends="aspell-dev bash file glib-dev dbus-glib-dev hunspell-dev"
+source="https://github.com/AbiWord/enchant/releases/download/enchant-1-6-1/enchant-1.6.1.tar.gz
+ hunspell-build-fix.patch"
+
+build() {
+ cd "$builddir"
+ CC="gcc" OBJC="gcc" ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="26c62dfa89ee40150db502651a2f876fba00569b7015f205dae27a029557effacff335bbe36124dbe6686537da2305bcab02592179d03e95fdf9741d54b98036 enchant-1.6.1.tar.gz
+c0b7fd8fd00a81ea2c08ea7ce2bdffa826b5a3a0c06eacb818681f0f977d8e76c69f7938c10cdf71571cd1cbbf0e576d36fc74a41755fb570e047525195aeb99 hunspell-build-fix.patch"