blob: 6440e65bb56034b28859c77d6a4ead126e68b724 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com>
pkgname=proxygen
pkgver=0.28.0
pkgrel=1
pkgdesc="A collection of C++ HTTP libraries including an easy to use HTTP server"
arch=('i686' 'x86_64')
url="https://github.com/facebook/proxygen"
license=('BSD')
depends=('folly>=0.34.0' 'fbthrift' 'libcap')
source=("https://github.com/facebook/proxygen/archive/v$pkgver.tar.gz"
'EchoServer.cpp.patch'
'HTTPDownstreamSessionTest.cpp.patch'
)
makedepends=('autoconf-archive' 'wget' 'ruby' 'gperftools')
options=('!makeflags')
conflicts=('proxygen-git')
provides=('proxygen')
md5sums=('2564029b9702cf9f5b490df800a3e6f2'
'f587fd8970bd02648474dac6d9d62326'
'4b0332e707b17770e72b67da7d9f3e65')
prepare() {
cd "$srcdir/$pkgname-$pkgver/$pkgname"
autoreconf -ivf
pushd .
cd httpserver/samples/echo
patch --verbose -p0 < $srcdir/EchoServer.cpp.patch
popd
cd lib/http/session/test
patch --verbose -p0 < $srcdir/HTTPDownstreamSessionTest.cpp.patch
}
build() {
cd "$srcdir/$pkgname-$pkgver/$pkgname"
PYTHON=/usr/bin/python2 ./configure \
--prefix=/usr \
--disable-static \
--with-gnu-ld=yes \
--with-sysconfdir=/etc \
--with-sysroot=/usr
make
}
check() {
cd "$srcdir/$pkgname-$pkgver/$pkgname"
make check
}
package() {
cd "$srcdir/$pkgname-$pkgver/$pkgname"
install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
make DESTDIR="$pkgdir/" install
# Install the license
# By default, 'make install' skips 'external' directory
for i in http_parser_cpp.cpp http_parser.{c,h}; do
install -Dm644 external/http_parser/$i $pkgdir/usr/include/external/http_parser/$i
done
install -Dm755 httpserver/samples/echo/echo_server $pkgdir/usr/bin/echo_server
}
# vim:set ts=2 sw=2 et:
|