summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc1c5134bed5ef6d2b309fc49edfd9132e3d3b20 (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
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Jonas Heinrich <onny@project-insanity.org>

pkgname=wangle-git
pkgver=0.13.0.r152.g0eae7be
pkgrel=1
pkgdesc='A full featured, high performance C++ futures implementation'
arch=(i686 x86_64)
url='https://github.com/facebook/wangle'
license=(BSD)
conflicts=(wangle)
provides=(wangle)
replaces=(wangle)
depends=(folly boost boost-libs openssl glog gflags)
makedepends=(git cmake)
source=(git+https://github.com/facebook/wangle.git)
md5sums=(SKIP)

pkgver() {
  cd wangle
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd wangle/wangle
  sed -i 's|std=c++0x|std=c++11|' CMakeLists.txt
}

build() {
  cd wangle/wangle
	cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=OFF
  make
}

package() {
  cd wangle/wangle
  make DESTDIR="$pkgdir" install
}