aboutsummaryrefslogtreecommitdiffstats
path: root/main/enchant
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-05 16:41:37 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-07 05:00:13 +0000
commit5ea0c55c0a4116fc6db3d57a7ec418c25831dafd (patch)
tree8f2a231d452fb1ad921a8a2a68819932e433c309 /main/enchant
parent450d0f8d8648eae6bdc0ca00353d74a75d0ee697 (diff)
downloadaports-5ea0c55c0a4116fc6db3d57a7ec418c25831dafd.tar.bz2
aports-5ea0c55c0a4116fc6db3d57a7ec418c25831dafd.tar.xz
main/enchant: modernise, add test suite
Diffstat (limited to 'main/enchant')
-rw-r--r--main/enchant/APKBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/main/enchant/APKBUILD b/main/enchant/APKBUILD
index ca45387637..d1f725af8e 100644
--- a/main/enchant/APKBUILD
+++ b/main/enchant/APKBUILD
@@ -1,22 +1,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enchant
pkgver=1.6.0
-pkgrel=12
+pkgrel=13
pkgdesc="A wrapper library for generic spell checking"
url="http://www.abisource.com/enchant/"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
-depends_dev="glib-dev"
-makedepends="aspell-dev dbus-glib-dev hunspell-dev gettext-dev file bash"
+makedepends="aspell-dev glib-dev dbus-glib-dev hunspell-dev gettext-dev file
+ bash"
source="http://www.abisource.com/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
hunspell-build-fix.patch"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
- update_config_sub || return 1
+ update_config_sub
default_prepare
}
@@ -26,18 +26,19 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --disable-static \
- || return 1
- make || return 1
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"/tests
+ ./test-enchant
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
-md5sums="de11011aff801dc61042828041fb59c7 enchant-1.6.0.tar.gz
-1305a6c285b5970bb1ef0f033f49f329 hunspell-build-fix.patch"
-sha256sums="2fac9e7be7e9424b2c5570d8affe568db39f7572c10ed48d4e13cddf03f7097f enchant-1.6.0.tar.gz
-54e325f71959828f1f04e03cd33b9b80f0dfdc89b68859c08e51831052f1b346 hunspell-build-fix.patch"
+
sha512sums="0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137 enchant-1.6.0.tar.gz
c0b7fd8fd00a81ea2c08ea7ce2bdffa826b5a3a0c06eacb818681f0f977d8e76c69f7938c10cdf71571cd1cbbf0e576d36fc74a41755fb570e047525195aeb99 hunspell-build-fix.patch"