[arch-commits] Commit in libime/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jul 9 17:59:25 UTC 2020


    Date: Thursday, July 9, 2020 @ 17:59:24
  Author: felixonmars
Revision: 662655

switch to ninja

Modified:
  libime/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-09 17:59:24 UTC (rev 662654)
+++ PKGBUILD	2020-07-09 17:59:24 UTC (rev 662655)
@@ -13,7 +13,7 @@
 url="https://github.com/fcitx/libime"
 license=('GPL')
 depends=('boost-libs' 'fcitx5')
-makedepends=('boost' 'extra-cmake-modules' 'python')
+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
@@ -42,11 +42,16 @@
 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