summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcb9259f27af5a76ceea1908c3ba1b85cf49e1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Theodoros Theodoridis <theodoridisgr@gmail.com>

pkgname=range-v3-git
pkgver=r1208.623e87d5
pkgrel=3
pkgdesc="Eric Niebler' C++ ranges library."
arch=('any')
url='https://github.com/ericniebler/range-v3'
license=('custom')
makedepends=('git')
source=("git+https://github.com/ericniebler/range-v3.git")
md5sums=('SKIP')

pkgver() {
  cd range-v3
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    mkdir -p  "$pkgdir/usr/include"
    cp -R "$srcdir/range-v3/include/"* "$pkgdir/usr/include"
	# install custom license
	install -Dm644 "$srcdir/range-v3/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 
}