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

Antonio Rojas arojas at archlinux.org
Thu Jun 4 11:00:39 UTC 2020


    Date: Thursday, June 4, 2020 @ 11:00:39
  Author: arojas
Revision: 638888

lrs 071 rebuild

Modified:
  sympol/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-04 10:57:35 UTC (rev 638887)
+++ PKGBUILD	2020-06-04 11:00:39 UTC (rev 638888)
@@ -2,7 +2,7 @@
 
 pkgname=sympol
 pkgver=0.1.9
-pkgrel=5
+pkgrel=6
 pkgdesc="A C++ tool to work with symmetric polyhedra"
 arch=(x86_64)
 url="http://www.math.uni-rostock.de/~rehn/software/sympol.html"
@@ -15,8 +15,6 @@
             'f3ed90e6b9af5dae0728c52ce4bb9107f3040481cac6c08116dbf8c19bfe3971')
 
 prepare() {
-  mkdir -p build
-
   cd SymPol-$pkgver
   sed -e '/(external/d' -i CMakeLists.txt # Don't use bundled cddlib and lrslib
   sed -e 's|lrsgmp|lrs|' -i sympol/CMakeLists.txt # Fix linking to system lrs
@@ -26,15 +24,13 @@
 }
 
 build() {
-  cd build
-  cmake ../SymPol-$pkgver \
+  cmake -B build -S SymPol-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I/usr/include/lrslib -DMA -DGMP -DBLISS_USE_GMP"
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }



More information about the arch-commits mailing list