summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56b024e2412f999b02e584c92e5901f49be80246 (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
40
41
42
43
44
# Maintainer: Erik Zenker <erikzenker at posteo dot de>
pkgname=asyncly-git
pkgver=heads.makepkg.r0.g2698c97
pkgrel=1
pkgdesc="This library implements task executors and higher level primitives built on them"
arch=('i686' 'x86_64')
url="https://github.com/erikzenker/asyncly.git"
license=('MIT')
depends=('boost' 'function2-git' 'prometheus-cpp-git' 'gmock' 'gtest')
makedepends=('cmake' 'clang')

source=("${pkgname}::git+https://github.com/erikzenker/asyncly.git")
sha256sums=('SKIP')

prepare() {
  cd "${srcdir}/${pkgname}"
  
  mkdir -p build && cd build

  cmake .. -DCMAKE_BUILD_TYPE="Release" \
           -DCMAKE_INSTALL_PREFIX=/usr \
           -DENABLE_TESTING=ON \
           -DBUILD_SHARED_LIBS=OFF \
           -DENABLE_BENCHMARK=OFF
}

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --all --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/\//./g'
}

build() {
  cd "${srcdir}/${pkgname}/build"
  cmake --build .
}

check() {
  cd "${srcdir}/${pkgname}/build"
}

package() {
  cd "${srcdir}/${pkgname}/build"
  make DESTDIR="$pkgdir/" install
}