Date: Thursday, April 7, 2022 @ 09:11:38
  Author: diabonas
Revision: 1182775

texworks: use cmake instead of make everywhere

This is closer to the template in the current CMake package guidelines. The
changes are purely cosmetical and do not influence the compiled executables.

Modified:
  texworks/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-04-07 08:58:44 UTC (rev 1182774)
+++ PKGBUILD    2022-04-07 09:11:38 UTC (rev 1182775)
@@ -26,13 +26,13 @@
 }
 
 build() {
-       cmake -DCMAKE_INSTALL_PREFIX=/usr \
+       cmake -B build \
+             -S "$pkgname" \
              -DCMAKE_BUILD_TYPE=None \
+             -DCMAKE_INSTALL_PREFIX=/usr \
              -DTW_BUILD_ID='Arch Linux' \
-             -DWITH_PYTHON=ON \
-             -B build \
-             -S "$pkgname"
-       make -C build
+             -DWITH_PYTHON=ON
+       cmake --build build
 }
 
 check() {
@@ -41,6 +41,5 @@
 }
 
 package() {
-       cd build
-       make DESTDIR="$pkgdir" install
+       DESTDIR="$pkgdir" cmake --install build
 }

Reply via email to