[arch-commits] Commit in range-v3/repos/community-any (PKGBUILD PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Jul 27 08:13:02 UTC 2020


    Date: Monday, July 27, 2020 @ 08:13:02
  Author: svenstaro
Revision: 665411

archrelease: copy trunk to community-any

Added:
  range-v3/repos/community-any/PKGBUILD
    (from rev 665410, range-v3/trunk/PKGBUILD)
Deleted:
  range-v3/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 35 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-27 08:12:55 UTC (rev 665410)
+++ PKGBUILD	2020-07-27 08:13:02 UTC (rev 665411)
@@ -1,39 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: hexchain <i at hexchain.org>
-
-pkgname=range-v3
-pkgver=0.10.0
-pkgrel=1
-pkgdesc="Experimental range library for C++11/14/17"
-arch=('any')
-url='https://github.com/ericniebler/range-v3'
-license=('custom')
-makedepends=('cmake')
-source=("https://github.com/ericniebler/range-v3/archive/${pkgver}.tar.gz")
-sha512sums=('4db089dcbf638eb30fa20dcf6785dd460c5a074a8912984a484592753cfee9f5b9a0e2c56b5bc5921d1b6120877aa2c83ac0a6fe428088ef2854033a635e9723')
-
-prepare() {
-    cd "${srcdir}/range-v3-${pkgver}"
-    rm -rf build && mkdir build
-}
-
-build() {
-    cd "${srcdir}/range-v3-${pkgver}"
-
-    cd build
-    cmake .. \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DRANGE_V3_TESTS=OFF \
-        -DRANGE_V3_HEADER_CHECKS=OFF \
-        -DRANGE_V3_EXAMPLES=OFF \
-        -DRANGE_V3_PERF=OFF
-    make
-}
-
-package() {
-    cd "${srcdir}/range-v3-${pkgver}"
-    install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-    cd build
-    make DESTDIR="${pkgdir}/" install
-}

Copied: range-v3/repos/community-any/PKGBUILD (from rev 665410, range-v3/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-27 08:13:02 UTC (rev 665411)
@@ -0,0 +1,35 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: hexchain <i at hexchain.org>
+
+pkgname=range-v3
+pkgver=0.10.0
+pkgrel=2
+pkgdesc="Experimental range library for C++11/14/17"
+arch=('any')
+url='https://github.com/ericniebler/range-v3'
+license=('custom')
+makedepends=('cmake' 'ninja')
+source=("$pkgname-pkgver.tar.gz::https://github.com/ericniebler/range-v3/archive/${pkgver}.tar.gz")
+sha512sums=('4db089dcbf638eb30fa20dcf6785dd460c5a074a8912984a484592753cfee9f5b9a0e2c56b5bc5921d1b6120877aa2c83ac0a6fe428088ef2854033a635e9723')
+
+build() {
+    cd "${srcdir}/range-v3-${pkgver}"
+
+    cmake . \
+        -Bbuild \
+        -GNinja \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DRANGE_V3_TESTS=OFF \
+        -DRANGE_V3_HEADER_CHECKS=OFF \
+        -DRANGE_V3_EXAMPLES=OFF \
+        -DRANGE_V3_PERF=OFF
+    ninja -C build
+}
+
+package() {
+    cd "${srcdir}/range-v3-${pkgver}"
+    install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+    DESTDIR="${pkgdir}/" ninja -C build install
+    mv "$pkgdir"/usr/include/module.modulemap "$pkgdir"/usr/include/range-v3.modulemap
+}



More information about the arch-commits mailing list