blob: ec9dc263197348eaa328d84b6e0596c74f7391c0 (
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
|
# Contributor: Nick Black <dankamongmen@gmail.com>
# Maintainer:
pkgname=capnproto
pkgver=0.7.0
pkgrel=2
pkgdesc="Tools for working with the Cap'n Proto format"
url="https://capnproto.org/"
arch="all"
license="MIT"
depends=
makedepends="linux-headers"
subpackages="$pkgname-dev"
case "$CARCH" in
mips*|s390x|armhf|armv7) options="!check";; # FAIL: capnp-test
esac
source="https://capnproto.org/$pkgname-c++-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-c++-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr/ --without-openssl
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
}
# We want to move the schema compilers into the dev package.
# See https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#dev.28.29
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin
}
sha512sums="9f8fb5753155798fcf9377a87f984a54d9fc5157c41aa11cd94108a773ca22d6e6952657e2d8079c9806f7de06f316c94957329fa52dbab6207aaa3b52348f04 capnproto-c++-0.7.0.tar.gz"
|