mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
# 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
|
|
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"
|