diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/hyphen |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/hyphen')
-rw-r--r-- | extra/hyphen/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/extra/hyphen/PKGBUILD b/extra/hyphen/PKGBUILD new file mode 100644 index 000000000..c50ecd886 --- /dev/null +++ b/extra/hyphen/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 104194 2010-12-30 18:07:33Z andyrtr $ +# Maintainer: AndyRTR <andyrtr@archlinux.org> + +pkgbase=hyphen +pkgname=('hyphen' 'hyphen-en') +pkgver=2.7.1 +pkgrel=2 +arch=('i686' 'x86_64') +url="http://hunspell.sf.net" +license=('GPL' 'LGPL' 'MPL') +groups=() +makedepends=('glibc' 'perl') +options=('!libtool') +source=(http://downloads.sourceforge.net/hunspell/${pkgname}-${pkgver}.tar.gz) +md5sums=('48a9f787f43a09c0a9b7b00cd1fddbbf') + +build() { + cd "$srcdir/$pkgname-$pkgver" + # libtool fix +# autoreconf -vfi + + ./configure --prefix=/usr --disable-static + make +} + +package_hyphen() { + pkgdesc="library for high quality hyphenation and justification" + depends=('glibc' 'perl') + + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install-libLTLIBRARIES + make DESTDIR="$pkgdir/" install-binSCRIPTS + make DESTDIR="$pkgdir/" install-includeHEADERS + + # license + install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} + +package_hyphen-en() { + pkgdesc="English hyphenation rules" + # arch=('any') + optdepends=('hyphen: offers hyphenation library functions') + + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install-hyphDATA + + pushd ${pkgdir}/usr/share/hyphen/ + en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NZ en_PH en_SG en_TT en_ZA en_ZW" + for lang in $en_US_aliases; do + ln -s hyph_en_US.dic hyph_$lang.dic + done + popd + + # the symlinks + install -dm755 ${pkgdir}/usr/share/myspell/dicts + pushd $pkgdir/usr/share/myspell/dicts + for file in $pkgdir/usr/share/hyphen/*; do + ln -sv /usr/share/hyphen/$(basename $file) . + done + popd +}
\ No newline at end of file |