summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlavi Pantaleev2015-07-29 03:05:37 +0300
committerSlavi Pantaleev2015-07-29 03:05:37 +0300
commit441a7752eee3c2804753108b316467bcbd3f36d3 (patch)
treed4d28693400d2dada71149bc5a7e5269cab5329a
downloadaur-hunspell-bg.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD42
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..02b66eb73e9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = hunspell-bg
+ pkgdesc = Bulgarian dictionary for Hunspell
+ pkgver = 4.3
+ pkgrel = 2
+ url = http://sourceforge.net/projects/bgoffice/
+ arch = any
+ license = GPL2
+ license = LGPL2.1
+ license = MPL
+ optdepends = hunspell: the spell checking libraries and apps
+ source = http://sourceforge.net/projects/bgoffice/files/OpenOffice.org%20Spell%20BG/4.3/OOo-spell-bg-4.3.zip
+ md5sums = ee804f871c855eb218c8d825b5fe54fb
+
+pkgname = hunspell-bg
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..d91256f7e6a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.xz
+*.gz
+pkg
+src
+vcs-repository
+*.zip
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7a41e92d415
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Slavi Pantaleev <s.pantaleev at gmail.com>
+
+pkgname=hunspell-bg
+pkgver=4.3
+pkgrel=2
+pkgdesc='Bulgarian dictionary for Hunspell'
+arch=('any')
+url="http://sourceforge.net/projects/bgoffice/"
+license=('GPL2' 'LGPL2.1' 'MPL')
+optdepends=('hunspell: the spell checking libraries and apps')
+source=('http://sourceforge.net/projects/bgoffice/files/OpenOffice.org%20Spell%20BG/'$pkgver'/OOo-spell-bg-'$pkgver'.zip')
+md5sums=('ee804f871c855eb218c8d825b5fe54fb')
+
+package() {
+ cd "${srcdir}/OOo-spell-bg-${pkgver}"
+ install -dm755 ${pkgdir}/usr/share/hunspell
+
+ # UTF-8 convert
+ conv='iconv -f windows-1251 -t utf-8'
+ $conv bg_BG.dic > bg_BG_utf8.dic
+ $conv bg_BG.aff | sed '1s/SET microsoft-cp1251/SET UTF-8/' > bg_BG_utf8.aff
+ $conv README.bulgarian > README_bulgarian.txt
+
+ install -m644 bg_BG_utf8.dic ${pkgdir}/usr/share/hunspell/bg_BG.dic
+ install -m644 bg_BG_utf8.aff ${pkgdir}/usr/share/hunspell/bg_BG.aff
+
+ # 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_bulgarian.txt ${pkgdir}/usr/share/doc/${pkgname}/
+
+ # licenses
+ install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
+ install -m644 Copyright ${pkgdir}/usr/share/licenses/${pkgname}/Copyright
+}