blob: a3c5860ffb4732849791c05f3efddeed847519db (
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: Aleksandar Trifunović <akstrfn at gmail dot com>
# Contributor: Daichi Shinozaki <dsdseg@gmail.com>
pkgname=fbthrift
pkgver=2019.03.18.00
pkgrel=1
pkgdesc="Facebook's branch of Apache Thrift, including a new C++ server."
arch=('i686' 'x86_64')
url="https://github.com/facebook/fbthrift"
license=('Apache')
depends=('folly' 'krb5' 'numactl' 'gflags' 'google-glog' 'mstch' 'fizz' 'wangle' 'bison')
conflicts=('thrift')
provides=('thrift')
makedepends=('cmake' 'zstd' 'libunwind')
source=("$url/archive/v${pkgver}.tar.gz")
sha256sums=('2cf1667586ce94435d8d70989c03bbf0256bbb48731eadde450b768495ff20db')
prepare() {
cd "$pkgname-$pkgver"
cmake -H. -B_build \
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
}
build() {
cd "$pkgname-$pkgver"
cmake --build _build
}
# check() {
# cd "$pkgname-$pkgver"
# cmake --build _build -- test
# }
package() {
cd "$pkgname-$pkgver"
cmake --build _build -- \
PY_INSTALL_HOME="$pkgdir/usr" \
PY_INSTALL_ARGS="--root '${pkgdir}' --prefix=/usr" \
DESTDIR="$pkgdir" install
}
|