[arch-commits] Commit in libime/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Nov 3 08:34:46 UTC 2020
Date: Tuesday, November 3, 2020 @ 08:34:45
Author: felixonmars
Revision: 740436
upgpkg: libime 1.0.0-1
Modified:
libime/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++--------------------------------
1 file changed, 8 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-03 08:34:26 UTC (rev 740435)
+++ PKGBUILD 2020-11-03 08:34:45 UTC (rev 740436)
@@ -2,11 +2,7 @@
# Contributor: csslayer <wengxt AT gmail com>
pkgname=libime
-pkgver=0.0.0.20201029
-_commit=22106dcf1681f6a5135a2d7fd35a3775187ca111
-_kenlmcommit=01c49fe86714276f77be9278d00906fc994256c1
-_lm_sc_ver=20140820
-_dict_ver=20200715
+pkgver=1.0.0
pkgrel=1
pkgdesc="A library to support generic input method implementation"
arch=('x86_64')
@@ -14,33 +10,13 @@
license=('GPL')
depends=('boost-libs' 'fcitx5')
makedepends=('boost' 'extra-cmake-modules' 'ninja' 'python')
-source=($pkgname-$_commit.tar.gz::https://github.com/fcitx/libime/archive/$_commit.tar.gz
- kenlm-$_kenlmcommit.tar.gz::https://github.com/kpu/kenlm/archive/$_kenlmcommit.tar.gz
- https://download.fcitx-im.org/data/lm_sc.3gm.arpa-$_lm_sc_ver.tar.bz2
- https://download.fcitx-im.org/data/dict.utf8-$_dict_ver.tar.xz
- https://download.fcitx-im.org/data/table.tar.gz)
-noextract=(lm_sc.3gm.arpa-$_lm_sc_ver.tar.bz2
- dict.utf8-$_dict_ver.tar.xz
- table.tar.gz)
-sha512sums=('770b1fb89a8d742b41fa1c15926854941542535f17a030bcbed9579acd9fbf127deb46cb61c9ffdb663f32491f1f401fc67578735a9526ab085665515e105d97'
- '461c2f45a7aa5685f418b7b456bff9c00b44b0bfdd347c36a5f9f1fb9a39539d27d0d66b078ed2847d8765e07157c241e24d61314cc08b90bdfbab99a800369e'
- 'ea3ede62eb993c4d21ca7cf339635f4686493a0cefd57df4a31f00a001e67502a13ff9612ff667b941b82b47de00be9f3c9689677d04195a7ef8716bac087519'
- '75ad207842937369e79c3c3616165424c4e71fbce7ba2b15c7c2f1dcb898950e6d9babf39ed5bde01c21dd025906c988a80989863175daa8d1315a9be4402130'
- '99e1d69c679355fcf3e117a1ef39b131cbd3af841387d2335757247d840b90ff6b7323e16fca98cf7a043033faf250d2e9c6d47b96845d18c278a0cf6f30fec9')
+source=("https://download.fcitx-im.org/fcitx5/libime/libime-${pkgver}_dict.tar.xz"{,.sig})
+sha512sums=('8bf2cf3136037063a33905d2f1d35ae7c1f6be0c9c2b5658b0d4bb043da931eb080ddf6177c6651af66193f8b5044945d1976f6abcf3928b037611fcd6dba418'
+ 'SKIP')
+validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9') # Weng Xuetian <wengxt at gmail.com>
-prepare() {
- cd $pkgname-$_commit/src/libime/core
- rmdir kenlm
- ln -s "$srcdir"/kenlm-$_kenlmcommit ./kenlm
-
- cd "$srcdir"/$pkgname-$_commit/data
- ln -s "$srcdir"/lm_sc.3gm.arpa-$_lm_sc_ver.tar.bz2
- ln -s "$srcdir"/dict.utf8-$_dict_ver.tar.xz
- ln -s "$srcdir"/table.tar.gz
-}
-
build(){
- cd $pkgname-$_commit
+ cd $pkgname-$pkgver
cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
ninja
@@ -47,11 +23,11 @@
}
check() {
- cd $pkgname-$_commit
+ cd $pkgname-$pkgver
ninja test
}
package() {
- cd $pkgname-$_commit
+ cd $pkgname-$pkgver
DESTDIR="$pkgdir" ninja install
}
More information about the arch-commits
mailing list