[arch-commits] Commit in hunspell-en/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sun Feb 19 21:18:20 UTC 2017
Date: Sunday, February 19, 2017 @ 21:18:20
Author: heftig
Revision: 289282
Uncrazy indentation, fix depends
Modified:
hunspell-en/trunk/PKGBUILD
----------+
PKGBUILD | 51 +++++++++++++++++++++------------------------------
1 file changed, 21 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-02-19 21:17:14 UTC (rev 289281)
+++ PKGBUILD 2017-02-19 21:18:20 UTC (rev 289282)
@@ -4,12 +4,12 @@
pkgbase=hunspell-en
pkgname=('hunspell-en_US' 'hunspell-en_AU' 'hunspell-en_CA' 'hunspell-en_GB' 'hunspell-en')
pkgver=2017.01.22
-pkgrel=1
+pkgrel=2
pkgdesc="English hunspell dictionaries"
arch=(any)
url="http://wordlist.aspell.net/dicts/"
license=('LGPL' 'custom:scowl')
-optdepends=('hunspell: the spell checking libraries and apps')
+optdepends=('hunspell: the spell checking libraries and apps')
source=(http://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_US-$pkgver.zip
http://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_AU-$pkgver.zip
http://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_CA-$pkgver.zip
@@ -20,17 +20,12 @@
'615d74ecb81c47155a00757b55be056459d5ba70')
prepare() {
- sed -i "s:SET UTF8:SET UTF-8:g" *.aff
+ sed -i "s:SET UTF8:SET UTF-8:g" *.aff
}
-build() {
- /bin/true
-}
-
package_hunspell-en_US() {
+ pkgdesc="US English hunspell dictionaries"
- pkgdesc="US English hunspell dictionaries"
-
cd "$srcdir"
install -dm755 ${pkgdir}/usr/share/hunspell
install -m644 en_US*.dic en_US*.aff $pkgdir/usr/share/hunspell
@@ -42,15 +37,14 @@
ln -sv /usr/share/hunspell/$(basename $file) .
done
popd
-
+
# licenses
install -D -m644 README_en_US.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_US
}
package_hunspell-en_AU() {
+ pkgdesc="AU English hunspell dictionaries"
- pkgdesc="AU English hunspell dictionaries"
-
cd "$srcdir"
install -dm755 ${pkgdir}/usr/share/hunspell
install -m644 en_AU*.dic en_AU*.aff $pkgdir/usr/share/hunspell
@@ -62,15 +56,14 @@
ln -sv /usr/share/hunspell/$(basename $file) .
done
popd
-
+
# licenses
install -D -m644 README_en_AU.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_AU
}
package_hunspell-en_CA() {
+ pkgdesc="CA English hunspell dictionaries"
- pkgdesc="CA English hunspell dictionaries"
-
cd "$srcdir"
install -dm755 ${pkgdir}/usr/share/hunspell
install -m644 en_CA*.dic en_CA*.aff $pkgdir/usr/share/hunspell
@@ -88,9 +81,8 @@
}
package_hunspell-en_GB() {
+ pkgdesc="GB English hunspell dictionaries"
- pkgdesc="GB English hunspell dictionaries"
-
cd "$srcdir"
install -dm755 ${pkgdir}/usr/share/hunspell
install -m644 en_GB*.dic en_GB*.aff $pkgdir/usr/share/hunspell
@@ -108,24 +100,23 @@
}
package_hunspell-en() {
-
- pkgdesc="English (US, UK, etc.) hunspell dictionaries"
- requires=('hunspell-en_US' 'hunspell-en_GB')
+ pkgdesc="English (US, UK, etc.) hunspell dictionaries"
+ depends=('hunspell-en_US' 'hunspell-en_GB')
cd "$srcdir"
install -dm755 ${pkgdir}/usr/share/hunspell
pushd $pkgdir/usr/share/hunspell/
- en_GB_aliases="en_AG en_BS en_BW en_BZ en_DK en_GB 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-large.aff $lang.aff
- ln -s en_GB-large.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
+ en_GB_aliases="en_AG en_BS en_BW en_BZ en_DK en_GB 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-large.aff $lang.aff
+ ln -s en_GB-large.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
More information about the arch-commits
mailing list