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

Antonio Rojas arojas at archlinux.org
Wed Jul 29 17:32:45 UTC 2020


    Date: Wednesday, July 29, 2020 @ 17:32:44
  Author: arojas
Revision: 392690

Update to 2.0

Modified:
  libcerf/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-29 15:20:10 UTC (rev 392689)
+++ PKGBUILD	2020-07-29 17:32:44 UTC (rev 392690)
@@ -1,8 +1,8 @@
 # Maintainer: Antonio Rojas <arojas at archlinux.org>
 
 pkgname=libcerf
-pkgver=1.13
-pkgrel=2
+pkgver=2.0
+pkgrel=1
 pkgdesc="Self-contained numeric library that provides an efficient and accurate implementation of complex error functions"
 arch=(x86_64)
 url="https://jugit.fz-juelich.de/mlz/libcerf/"
@@ -10,22 +10,16 @@
 depends=(glibc)
 makedepends=(cmake)
 source=(https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v$pkgver/libcerf-v$pkgver.tar.gz)
-sha256sums=('e4699f81af838aef5b3e77209fec8e9820a4f492d598fb5a070800854976a305')
+sha256sums=('c86e8b1ea18ac7747582e83dba6f42f0faea1deb5005b7ffb2e508e36b579716')
 
-prepare() {
-  mkdir -p build
-}
-
 build() {
-  cd build
-  cmake ../$pkgname-v$pkgver \
+  cmake -B build -S $pkgname-v$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 
-  install -Dm644 "$srcdir"/$pkgname-v$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 $pkgname-v$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list