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

Jan Steffens heftig at archlinux.org
Sun Mar 3 02:47:45 UTC 2019


    Date: Sunday, March 3, 2019 @ 02:47:44
  Author: heftig
Revision: 437420

simplify cmake use

Modified:
  libmirage/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-03 02:46:26 UTC (rev 437419)
+++ PKGBUILD	2019-03-03 02:47:44 UTC (rev 437420)
@@ -15,18 +15,16 @@
 sha256sums=('e357160bbb15e967d7705f09bf7c43cac53aafc26b2171ccb5cc8c2ec7fb68f2')
 
 prepare() {
-  mkdir build
   cd $pkgname-$pkgver
 }
 
 build() {
-  cd build
-  cmake ../$pkgname-$pkgver \
+  cmake -H$pkgname-$pkgver -Bbuild \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DPOST_INSTALL_HOOKS:BOOL=OFF
-  cmake --build .
+  cmake --build build
 }
 
 package() {


More information about the arch-commits mailing list