Date: Monday, January 8, 2018 @ 06:57:45 Author: eschwartz Revision: 280408
archrelease: copy trunk to community-x86_64 Added: fcitx-libpinyin/repos/community-x86_64/PKGBUILD (from rev 280407, fcitx-libpinyin/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: fcitx-libpinyin/repos/community-x86_64/PKGBUILD (from rev 280407, fcitx-libpinyin/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-01-08 06:57:45 UTC (rev 280408) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: poplarch <popla...@gmail.com> + +pkgname=fcitx-libpinyin +pkgver=0.5.3 +_model=model.text.20161206.tar.gz +pkgrel=2 +pkgdesc="Fcitx Wrapper for libpinyin, Library to deal with pinyin" +arch=('x86_64') +url="https://github.com/fcitx/fcitx-libpinyin" +license=('GPL') +depends=('fcitx' 'libpinyin' 'fcitx-qt5' 'qt5-webengine') +makedepends=('cmake') +source=("https://download.fcitx-im.org/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig} + "https://download.fcitx-im.org/data/$_model"{,.sig}) +sha512sums=('55e728b02197a5f17bb93b8c07c1f2c19f20c3cb9f762069df427bb2322a571ac11a037ff11e4cd229287942af096c8e3c1f250214f6b0f6eb0d94654d06cfcf' + 'SKIP' + '26450e347b7a211e5abd94acbb9befc8cee7d8fc20e5161ef11b8b9b1ad47cde4f1add5c41484d9af04e4dde2aa748090e297e799ee7f6d2f9fcec3873eee429' + 'SKIP') +validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9') # Weng Xuetian <wen...@gmail.com> + +prepare() { + mkdir build + ln -s "$srcdir"/$pkgname-$_model fcitx-libpinyin-$pkgver/data/$_model +} + +build() { + cd build + + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../$pkgname-$pkgver + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install +}