Package Details: range-v3-git 0.12.0.r11.g3d6e6f56e-1

Git Clone URL: https://aur.archlinux.org/range-v3-git.git (read-only, click to copy)
Package Base: range-v3-git
Description: Experimental range library for C++11/14/17
Upstream URL: https://github.com/ericniebler/range-v3
Keywords: c++
Licenses: custom
Submitter: Kritias
Maintainer: patlefort
Last Packager: patlefort
Votes: 5
Popularity: 0.000000
First Submitted: 2015-06-23 14:51 (UTC)
Last Updated: 2022-07-11 03:57 (UTC)

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

Kritias commented on 2018-11-28 11:43 (UTC)

Thanks for the suggestion!

alienzj commented on 2018-11-28 08:18 (UTC) (edited on 2018-11-28 08:23 (UTC) by alienzj)

We need /usr/lib/cmake/range-v3/range-v3-config.cmake file. Please update PKGBUILD. Thanks very much!

prepare() {
    cd "${srcdir}/range-v3"
    rm -rf build && mkdir build
}

build() {
    cd "${srcdir}/range-v3"

    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"
    install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

    cd build
    make DESTDIR="${pkgdir}/" install
}

verri commented on 2017-03-27 13:44 (UTC)

As of Mar 8th, range-v3 uses Semantic Versioning. I suggest using: git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' instead of: printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" in pkgver().

Kritias commented on 2016-12-28 01:05 (UTC)

@verri, I updated the pkgver() to a git rev-list/rev-parse based scheme.

verri commented on 2016-12-27 23:30 (UTC)

If you still prefer the YYYYMMDD version scheme instead of the git revision number, I suggest auto-generating the version using pkgver() { cd "$srcdir/${pkgname%-git}" git log -1 --format=%cd --date=short | sed "s/-//g" } In this way, you do not need to update frequently the current version.

verri commented on 2016-12-27 01:06 (UTC)

@Kritias, it seems that you have never updated this package. If you are not interested anymore, I can maintain it.