[arch-commits] Commit in sunpinyin-data/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 18:46:09 UTC 2020


    Date: Tuesday, July 7, 2020 @ 18:46:09
  Author: felixonmars
Revision: 660100

archrelease: copy trunk to community-staging-any

Added:
  sunpinyin-data/repos/community-staging-any/
  sunpinyin-data/repos/community-staging-any/PKGBUILD
    (from rev 660098, sunpinyin-data/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: sunpinyin-data/repos/community-staging-any/PKGBUILD (from rev 660098, sunpinyin-data/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 18:46:09 UTC (rev 660100)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+
+pkgname=sunpinyin-data
+pkgver=2.0.3.20140820
+epoch=1
+_lm_sc_ver=20140820
+_dict_ver=20131214
+pkgrel=3
+arch=('any')
+pkgdesc="Statistical language model data from open-gram project for sunpinyin"
+license=('APACHE')
+provides=("sunpinyin-data-le=$pkgver")
+url="https://sourceforge.net/projects/open-gram/"
+makedepends=('sunpinyin' 'git')
+source=("https://downloads.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-${_lm_sc_ver}.tar.bz2"
+        "https://downloads.sourceforge.net/project/open-gram/dict.utf8-${_dict_ver}.tar.bz2")
+sha512sums=('ea3ede62eb993c4d21ca7cf339635f4686493a0cefd57df4a31f00a001e67502a13ff9612ff667b941b82b47de00be9f3c9689677d04195a7ef8716bac087519'
+            'adaf52a27c6afdeb950912845f3fcb7a6799f997d50a2892ceecf76ed13e3644407338d734832c2ce4b09bce11fec4731774f1eb2dd4c30bea5490555915bd5b')
+
+prepare() {
+  mkdir raw && cd raw
+  ln -s ../lm_sc.3gm.arpa
+  ln -s ../dict.utf8
+
+  ln -sf "/usr/share/doc/sunpinyin/SLM-inst.mk" ./Makefile
+}
+
+build() {
+  cd raw
+  make
+}
+
+package() {
+  cd raw
+  make DESTDIR="$pkgdir" install
+}
+


More information about the arch-commits mailing list