aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thrift/APKBUILD
blob: c370fbd35cca7c3ecbbf4c08817b348eeac14873 (plain) (blame)
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
# Maintainer: Patrick Gansterer <paroga@paroga.com>
pkgname=thrift
pkgver=0.14.0
pkgrel=1
pkgdesc="Language-independent software stack for RPC implementation"
url="https://thrift.apache.org/"
arch="all !armhf" # multiple failing tests
license="Apache-2.0"
makedepends="autoconf automake bison boost-dev boost-static flex
	libevent-dev libtool openssl-dev zlib-dev"
subpackages="$pkgname-libs-cpp:libscpp $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/apache/thrift/archive/v$pkgver.tar.gz
	fix-type-limits-warning.patch
	missing-signal-h.patch
	"

# secfixes:
#   0.14.0-r0:
#     - CVE-2020-13949

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-python \
		--without-py3 \
		--disable-tutorial
	make
}

check() {
	make -k check
}

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

libscpp() {
	pkgdesc="Thrift C++ library"

	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*-*.so "$subpkgdir"/usr/lib
}

sha512sums="01db630d4b6bfcae1da7cdb89da79a07d86d5b31f56c0a949826dfc7360f1874506a883a58b7de3317a8e54571c829e4dba93e96087c2a104a96768d7db5f7fd  thrift-0.14.0.tar.gz
e06680fc8148c3a7de7983da23dd1e82840d4f53f1d73e5f34d16034477246088295e1dcaaceec41d3de34925e5c289195435fa4f9eb3e665ad494f3ab7386da  fix-type-limits-warning.patch
72db52532e03ab2c8bca03f61b427632eb0f7bf0bb29a2e90f2fab2a3775d589791083848236ed88b23eecb8c6a134b335669997df66f11483f2b614d946bd5b  missing-signal-h.patch"