[arch-commits] Commit in (4 files)
andyrtr at archlinux.org
andyrtr at archlinux.org
Thu Dec 30 16:57:35 UTC 2010
Date: Thursday, December 30, 2010 @ 11:57:34
Author: andyrtr
Revision: 104178
add hunspell-en pkg
Added:
hunspell-en/
hunspell-en/repos/
hunspell-en/trunk/
hunspell-en/trunk/PKGBUILD
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Added: hunspell-en/trunk/PKGBUILD
===================================================================
--- hunspell-en/trunk/PKGBUILD (rev 0)
+++ hunspell-en/trunk/PKGBUILD 2010-12-30 16:57:34 UTC (rev 104178)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+pkgname=hunspell-en
+pkgver=7.0
+pkgrel=1
+pkgdesc="English hunspell dictionaries"
+arch=(any)
+#url="http://en-gb.pyxidium.co.uk/"
+url="http://wordlist.sourceforge.net/"
+license=('LGPL' 'custom:scowl')
+optdepends=('hunspell: the spell checking libraries and apps')
+source=(http://downloads.sourceforge.net/wordlist/hunspell-en_US-$pkgver-0.zip
+ http://downloads.sourceforge.net/wordlist/hunspell-en_CA-$pkgver-0.zip
+ http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip)
+md5sums=('00047f06c774fa69f7a3360b83d209cc'
+ '731a92e959e1904d5f3b210e4bb2c871'
+ '218909136738f4564b81ecd145ade6ee')
+
+build() {
+ /bin/true
+}
+
+package() {
+ cd "$srcdir"
+ install -dm755 ${pkgdir}/usr/share/hunspell
+ cp -p en_*.dic en_*.aff $pkgdir/usr/share/hunspell
+
+ pushd $pkgdir/usr/share/hunspell/
+ en_GB_aliases="en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW"
+ for lang in $en_GB_aliases; do
+ ln -s en_GB.aff $lang.aff
+ ln -s en_GB.dic $lang.dic
+ done
+ en_US_aliases="en_PH"
+ for lang in $en_US_aliases; do
+ ln -s en_US.aff $lang.aff
+ ln -s en_US.dic $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/hunspell/*; do
+ ln -sv /usr/share/hunspell/$(basename $file) .
+ done
+ popd
+
+ # docs
+ install -dm755 ${pkgdir}/usr/share/doc/$pkgname
+ cp -p README_en_??.txt $pkgdir/usr/share/doc/$pkgname
+
+ # licenses
+ install -D -m644 README_en_US.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_US
+ install -D -m644 README_en_CA.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_CA
+ install -D -m644 README_en_GB.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_GB
+}
Property changes on: hunspell-en/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the arch-commits
mailing list