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

Antonio Rojas arojas at gemini.archlinux.org
Sat Dec 4 18:43:39 UTC 2021


    Date: Saturday, December 4, 2021 @ 18:43:39
  Author: arojas
Revision: 430680

Update to 3.1.6

Modified:
  double-conversion/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-04 12:08:19 UTC (rev 430679)
+++ PKGBUILD	2021-12-04 18:43:39 UTC (rev 430680)
@@ -1,10 +1,11 @@
-# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
 # Contributor: Joel Teichroeb <joel at teichroeb.net>
 # Contributor: Jonas Heinrich <onny at project-insanity.org>
 
 pkgname=double-conversion
-pkgver=3.1.5
-pkgrel=2
+pkgver=3.1.6
+pkgrel=1
 pkgdesc='Binary-decimal and decimal-binary routines for IEEE doubles'
 arch=(x86_64)
 url='https://github.com/google/double-conversion'
@@ -11,25 +12,18 @@
 license=(BSD)
 depends=(gcc-libs)
 makedepends=(cmake)
-source=(double-conversion-$pkgver.tar.gz::https://github.com/google/double-conversion/archive/v$pkgver.tar.gz)
-sha256sums=('a63ecb93182134ba4293fd5f22d6e08ca417caafa244afaa751cbfddf6415b13')
+source=(https://github.com/google/double-conversion/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('8a79e87d02ce1333c9d6c5e47f452596442a343d8c3e9b234e8a62fce1b1d49c')
 
-prepare() {
-  mkdir -p build
-}
-
 build() {
-  cd build
-  cmake ../$pkgname-$pkgver \
+  cmake -B build -S $pkgname-$pkgver \
       -DCMAKE_INSTALL_PREFIX=/usr \
-      -DCMAKE_INSTALL_LIBDIR=lib \
       -DBUILD_SHARED_LIBS=ON
-  make
+  cmake --build build
 }
 
 package () {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 
-  install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/double-conversion
+  install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list