diff options
author | Max Rees <maxcrees@me.com> | 2018-08-09 01:20:02 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2018-08-09 01:20:02 -0400 |
commit | f0388136a2c1d2af305fd4675f18f7e9b5df3e6b (patch) | |
tree | 9d89160c85200d37d85fb2d1ca4656fa16f13283 /user | |
parent | 8c4f2125f1ad021fb57748542f5c3e659368d884 (diff) | |
download | packages-f0388136a2c1d2af305fd4675f18f7e9b5df3e6b.tar.gz packages-f0388136a2c1d2af305fd4675f18f7e9b5df3e6b.tar.bz2 packages-f0388136a2c1d2af305fd4675f18f7e9b5df3e6b.tar.xz packages-f0388136a2c1d2af305fd4675f18f7e9b5df3e6b.zip |
user/hyphen: pull in
Diffstat (limited to 'user')
-rw-r--r-- | user/hyphen/APKBUILD | 49 | ||||
-rw-r--r-- | user/hyphen/mawk.patch | 23 |
2 files changed, 72 insertions, 0 deletions
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 <timo.teras@iki.fi> +# Maintainer: Max Rees <maxcrees@me.com> +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" diff --git a/user/hyphen/mawk.patch b/user/hyphen/mawk.patch new file mode 100644 index 000000000..c9292606a --- /dev/null +++ b/user/hyphen/mawk.patch @@ -0,0 +1,23 @@ +--- hyphen-2.8.8/lig.awk 2010-03-04 07:13:47.000000000 -0500 ++++ hyphen-2.8.8/lig.awk 2018-08-08 14:53:48.970188512 -0400 +@@ -24,14 +24,14 @@ + c!=b { print c } + + /f[1-9]?$/ { +- print gensub("f[1-9]?$", "ff", "g", b); +- if (c!=b) print gensub("f[1-9]?$", "ff", "g", c); ++ print gsub("f[1-9]?$", "ff", b); ++ if (c!=b) print gsub("f[1-9]?$", "ff", c); + +- print gensub("f[1-9]?$", "fi", "g", b); +- if (c!=b) print gensub("f[1-9]?$", "fi", "g", c); ++ print gsub("f[1-9]?$", "fi", b); ++ if (c!=b) print gsub("f[1-9]?$", "fi", c); + +- print gensub("f[1-9]?$", "fl", "g", b); +- if (c!=b) print gensub("f[1-9]?$", "fl", "g", c); ++ print gsub("f[1-9]?$", "fl", b); ++ if (c!=b) print gsub("f[1-9]?$", "fl", c); + } + + |