[arch-commits] Commit in fcitx5-chinese-addons/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jul 9 17:57:04 UTC 2020
Date: Thursday, July 9, 2020 @ 17:57:04
Author: felixonmars
Revision: 662459
switch to ninja
Modified:
fcitx5-chinese-addons/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-09 17:57:03 UTC (rev 662458)
+++ PKGBUILD 2020-07-09 17:57:04 UTC (rev 662459)
@@ -12,7 +12,7 @@
license=('GPL')
conflicts=('fcitx')
depends=('curl' 'fcitx5-qt' 'libime' 'opencc' 'qt5-webkit')
-makedepends=('boost' 'extra-cmake-modules' 'fcitx5-lua')
+makedepends=('boost' 'extra-cmake-modules' 'fcitx5-lua' 'ninja')
optdepends=('fcitx5-lua: Lua and imeapi support from pinyin')
source=("https://github.com/fcitx/fcitx5-chinese-addons/archive/$_commit/fcitx5-chinese-addons-$_commit.tar.gz"
https://download.fcitx-im.org/data/py_table-$_pytablever.tar.gz
@@ -28,14 +28,19 @@
ln -s "$srcdir"/py_stroke-$_pytablever.tar.gz
}
-build(){
+build() {
cd $pkgname-$_commit
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
- make
+ cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
+ ninja
}
+check() {
+ cd $pkgname-$_commit
+ ninja test
+}
+
package() {
cd $pkgname-$_commit
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" ninja install
}
More information about the arch-commits
mailing list