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

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Jul 22 02:21:04 UTC 2018


    Date: Sunday, July 22, 2018 @ 02:21:04
  Author: svenstaro
Revision: 362730

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 39 insertions(+), 20 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-22 02:21:00 UTC (rev 362729)
+++ PKGBUILD	2018-07-22 02:21:04 UTC (rev 362730)
@@ -1,20 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: hexchain <i at hexchain.org>
-
-pkgname=range-v3
-pkgver=0.3.6
-pkgrel=1
-pkgdesc="Experimental range library for C++11/14/17"
-arch=('any')
-url='https://github.com/ericniebler/range-v3'
-license=('custom')
-source=("https://github.com/ericniebler/range-v3/archive/${pkgver}.tar.gz")
-sha512sums=('218cb179023980a3c13678da24638a10030e1c957c711117ebdd7d895f6480644b598686bc1a03d0460889ac058c0f6f9b2d9fcafaae0588a6e2cc1752be1db0')
-
-package() {
-    cd range-v3-${pkgver}
-    mkdir -p "$pkgdir/usr/include"
-    cp -rv --no-preserve=ownership "include/"* "$pkgdir/usr/include"
-    # install custom license
-    install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: range-v3/repos/community-any/PKGBUILD (from rev 362729, range-v3/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-22 02:21:04 UTC (rev 362730)
@@ -0,0 +1,39 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: hexchain <i at hexchain.org>
+
+pkgname=range-v3
+pkgver=0.3.6
+pkgrel=2
+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=('218cb179023980a3c13678da24638a10030e1c957c711117ebdd7d895f6480644b598686bc1a03d0460889ac058c0f6f9b2d9fcafaae0588a6e2cc1752be1db0')
+
+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
+}



More information about the arch-commits mailing list