Package Details: range-v3-git 0.4.0.r34.ga50fa8c5-1

Git Clone URL: (read-only, click to copy)
Package Base: range-v3-git
Description: Eric Niebler' C++ ranges library.
Upstream URL:
Keywords: c++
Licenses: custom
Submitter: Kritias
Maintainer: Kritias
Last Packager: Kritias
Votes: 5
Popularity: 0.098415
First Submitted: 2015-06-23 14:51
Last Updated: 2018-11-28 11:42

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

Kritias commented on 2018-11-28 11:43

Thanks for the suggestion!

alienzj commented on 2018-11-28 08:18

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 .. \
        -DRANGE_V3_TESTS=OFF \

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

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

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

verri commented on 2016-12-27 23:30

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

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