diff options
author | Severen Redwood | 2015-06-09 00:01:12 +1200 |
---|---|---|
committer | Maarten de Vries | 2019-01-15 16:18:10 +0100 |
commit | 556395bc041458d621f4d9a6d5d96ebfbdbb6afd (patch) | |
tree | 0c9bb3564d66a103c9d6c21bb47af55f0dfa7b95 | |
download | aur-556395bc041458d621f4d9a6d5d96ebfbdbb6afd.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6476424c4829 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-capnproto + pkgdesc = Cap'n Proto serialization/RPC system + pkgver = 0.7.0 + pkgrel = 1 + url = https://capnproto.org/ + arch = i686 + arch = x86_64 + license = MIT + makedepends = mingw-w64-configure + options = !strip + options = !buildflags + options = staticlibs + source = https://capnproto.org/capnproto-c++-0.7.0.tar.gz + sha512sums = 9f8fb5753155798fcf9377a87f984a54d9fc5157c41aa11cd94108a773ca22d6e6952657e2d8079c9806f7de06f316c94957329fa52dbab6207aaa3b52348f04 + +pkgname = mingw-w64-capnproto + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a564d2747985 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Maarten de Vries +# Contributors: Dave Reisner <dreisner@archlinux.org> +# Matthias Blaicher <matthias@blaicher.com> +# Severen Redwood <severen@shrike.me> + +pkgname=mingw-w64-capnproto +pkgver=0.7.0 +pkgrel=1 +pkgdesc="Cap'n Proto serialization/RPC system" +arch=('i686' 'x86_64') +url='https://capnproto.org/' +license=('MIT') +makedepends=(mingw-w64-configure) +source=("https://capnproto.org/capnproto-c++-${pkgver}.tar.gz") +sha512sums=('9f8fb5753155798fcf9377a87f984a54d9fc5157c41aa11cd94108a773ca22d6e6952657e2d8079c9806f7de06f316c94957329fa52dbab6207aaa3b52348f04') + +options=(!strip !buildflags staticlibs) + +_architectures=("i686-w64-mingw32" "x86_64-w64-mingw32") + +build() { + env + cd "$srcdir/capnproto-c++-$pkgver" + for _arch in ${_architectures[@]}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure --with-external-capnp --disable-shared --enable-static --disable-reflection + make + popd + done +} + +package() { + for _arch in ${_architectures[@]}; do + cd "${srcdir}/capnproto-c++-${pkgver}/build-${_arch}" + make DESTDIR="$pkgdir" install + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} + +# vim:set ts=4 sw=4: |