From f0388136a2c1d2af305fd4675f18f7e9b5df3e6b Mon Sep 17 00:00:00 2001 From: Max Rees Date: Thu, 9 Aug 2018 01:20:02 -0400 Subject: user/hyphen: pull in --- user/hyphen/APKBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 user/hyphen/APKBUILD (limited to 'user/hyphen/APKBUILD') diff --git a/user/hyphen/APKBUILD b/user/hyphen/APKBUILD new file mode 100644 index 000000000..eb37c9a1b --- /dev/null +++ b/user/hyphen/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Timo Teräs +# Maintainer: Max Rees +pkgname=hyphen +pkgver=2.8.8 +pkgrel=1 +pkgdesc="Library for high quality word hyphenation and justification" +url="https://hunspell.sourceforge.net/" +arch="all" +license="LGPL-2.1+ OR LGPL-2.0+ OR MPL-1.0 or GPL-2.0+" +subpackages="$pkgname-dev" +depends="" +depends_dev="perl" +makedepends="$depends_dev" +source="https://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz + mawk.patch" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + --disable-dependency-tracking \ + --enable-fast-install + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install + # The en_US dictionary that comes with has an unacceptable license + # and it isn't really needed anyway since libreoffice has its own + rm -r "$pkgdir"/usr/share +} + +dev() { + default_dev + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +sha512sums="ee514952be56869840b70fb74f60eba14dc4de246733ff8705492367e8cf00c485f8778a9d5a7ba374c988d4ac9fedbe75826dc559e1b62465dbfba21f6ce7de hyphen-2.8.8.tar.gz +c9ee32c265ded1e862baae69ec30f3a1769b447bdcf0b51d1d59d5fe4c986c8fdf04049085344311f411cd0204a5f7c003eb290669a668d9b137c74698d1c8b0 mawk.patch" -- cgit v1.2.3-70-g09d2