summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 644e4ccd2312befea5a9c3cb18cb782c0fa6e071 (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: Daichi Shinozaki <dsdseg@gmail.com>
pkgname=wangle
pkgver=0.13.0
pkgrel=2
pkgdesc="A full featured, high performance C++ futures implementation"
arch=('i686' 'x86_64')
url="https://github.com/facebook/wangle"
license=('Apache')
depends=('folly' 'boost' 'boost-libs')
makedepends=('cmake' 'gflags' 'gtest' 'google-glog')
options=('!emptydirs' 'staticlibs')
source=("https://github.com/facebook/$pkgname/archive/v${pkgver}.tar.gz"
CMakeLists.txt.patch
ServiceTest.cpp.patch
ConnectionManager.h.patch)
md5sums=('f6d34eaaf1342384f9f7327c6640e55e'
         'd5086d808c774339062e8a37e22b5921'
         '36ff005a5706ca9c5153e610ea157f37'
         'f60c21e5c9689c7c360aedcb15832874')

prepare() {
  cd "$pkgname-$pkgver/$pkgname"
  patch --verbose -p0 -i $srcdir/CMakeLists.txt.patch
  cd service
  patch --verbose -p0 -i $srcdir/ServiceTest.cpp.patch
  cd ../acceptor
  patch --verbose -p0 -i $srcdir/ConnectionManager.h.patch
}

build() {
  cd "$pkgname-$pkgver/$pkgname"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
  make
}

#check() {
#  cd "$pkgname-$pkgver/$pkgname"
#  ctest
#}

package() {
  cd "$pkgname-$pkgver/$pkgname"
  make DESTDIR=$pkgdir install 
}