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

Felix Yan felixonmars at archlinux.org
Thu Jul 9 18:02:33 UTC 2020


    Date: Thursday, July 9, 2020 @ 18:02:32
  Author: felixonmars
Revision: 662882

switch to ninja

Modified:
  catimg/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-09 18:02:32 UTC (rev 662881)
+++ PKGBUILD	2020-07-09 18:02:32 UTC (rev 662882)
@@ -10,7 +10,7 @@
 url="https://github.com/posva/catimg"
 license=('MIT')
 depends=('glibc')
-makedepends=('cmake')
+makedepends=('cmake' 'ninja')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/posva/catimg/archive/$pkgver.tar.gz")
 sha512sums=('a3c0ed92a797dc6e213e202cf36d4da32f4baba0ba4dc60875f4df152e3df10ec2276723e10826ce13ac1ddb4f32f75e0d6851767003032ecaa73fe0851e6559')
 
@@ -17,13 +17,13 @@
 build() {
 	cd $pkgname-$pkgver
   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
-  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
-	make
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
+	ninja
 }
 
 package() {
 	cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" ninja install
 
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list