summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlois Nespor <info@aloisnespor.info>2018-02-22 10:33:49 +0100
committerAlois Nespor <info@aloisnespor.info>2018-02-22 10:33:49 +0100
commitd7e9bae4843907d499414f1dffe62611f57b78cb (patch)
treed40a268a42e838be268004b075fbec4cd086a961
parent73f7c900c8ce7a5d8087e3e816b22fab1243367a (diff)
Update
-rwxr-xr-x[-rw-r--r--].SRCINFO6
-rwxr-xr-x[-rw-r--r--]PKGBUILD34
2 files changed, 21 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a98a064..81e549b 100644..100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Mon Aug 1 12:16:43 UTC 2016
pkgbase = hunspell-cs
- pkgdesc = Czech hunspell/myspell dictionary
+ pkgdesc = Czech dictionary for Hunspell
pkgver = 20061030
- pkgrel = 1
+ pkgrel = 2
url = http://extensions.services.openoffice.org/en/project/czech-dictionary-pack-ceske-slovniky-cs-cz
arch = any
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 47852f0..a51537f 100644..100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=hunspell-cs
pkgver=20061030
-pkgrel=1
-pkgdesc="Czech hunspell/myspell dictionary"
+pkgrel=2
+pkgdesc="Czech dictionary for Hunspell"
arch=('any')
url="http://extensions.services.openoffice.org/en/project/czech-dictionary-pack-ceske-slovniky-cs-cz"
license=('GPL2' 'custom')
@@ -11,21 +11,25 @@ depends=('hunspell')
source=(http://download.services.openoffice.org/contrib/dictionaries/cs_CZ-pack.zip )
md5sums=('a778a2a0df6abf505fd8b20a503414e0')
-build()
-{
- /bin/true
-}
package()
{
- cd ${srcdir}
- bsdtar -xf cs_CZ.zip
- install -D -m 644 cs_CZ.aff ${pkgdir}/usr/share/myspell/dicts/cs_CZ.aff
- install -D -m 644 cs_CZ.dic ${pkgdir}/usr/share/myspell/dicts/cs_CZ.dic
+ bsdtar -xf cs_CZ.zip
+
+ install -dm755 "$pkgdir"/usr/share/hunspell
+ install -m644 cs_CZ.aff "$pkgdir"/usr/share/hunspell
+ install -m644 cs_CZ.dic "$pkgdir"/usr/share/hunspell
+
+ # 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
+ install -m644 README_cs.txt "$pkgdir"/usr/share/doc/$pkgname
- # symlinks are needed
- install -dm755 ${pkgdir}/usr/share/hunspell
- for file in ${pkgdir}/usr/share/myspell/dicts/*; do
- ln -s /usr/share/myspell/dicts/$(basename $file) ${pkgdir}/usr/share/hunspell/$(basename $file)
- done
}