summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59642042eed649f928d05e6c9c3b1a3ed4a06f7c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Jaco Malan <jacomalan.12@gmail.com>
pkgname=libclstl-git
pkgrel=1
pkgver=r2.a623908
pkgdesc="The CodeLog Standard Template Library"
provides=('libclstl')
conflicts=('libclstl')
arch=('any')
url="https://github.com/Code-Log/clstl"
license=('MIT')
makedepends=('clang' 'git' 'cmake')
source=('libclstl::git+https://github.com/Code-Log/clstl#branch=master')

pkgver() {

    cd $srcdir
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

prepare() {
    mkdir -p $srcdir/libclstl/build
}

build() {

    cd $srcdir/libclstl/build
    cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=$(which clang) -DCMAKE_CXX_COMPILER=$(which clang++)
    make $MAKEFLAGS

}

package() {

    cd $srcdir/libclstl/build
    make DESTDIR="$pkgdir" install

}
md5sums=('SKIP')