Skip to content

Instantly share code, notes, and snippets.

@pepijndevos
Last active March 21, 2021 15:16
Show Gist options
  • Save pepijndevos/b171748cf5689f2cdc39892220747145 to your computer and use it in GitHub Desktop.
Save pepijndevos/b171748cf5689f2cdc39892220747145 to your computer and use it in GitHub Desktop.
capnproto-git PKGBUILD
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributors: Dave Reisner <dreisner@archlinux.org>
# Matthias Blaicher <matthias@blaicher.com>
# Severen Redwood <severen@shrike.me>
_pkgname=capnproto
pkgname=capnproto-git
pkgver=0.8.r1.b5ab41ea
pkgrel=1
pkgdesc="Cap'n Proto serialization/RPC system"
arch=('x86_64')
url='https://capnproto.org/'
license=('MIT')
conflicts=("${_pkgname}")
depends=('gcc-libs' 'glibc' 'zlib')
makedepends=('cmake' 'git')
provides=("${_pkgname}" 'libcapnp.so' 'libcapnp-json.so' 'libcapnp-rpc.so' 'libcapnpc.so'
'libkj-async.so' 'libkj-gzip.so' 'libkj-http.so' 'libkj-test.so' 'libkj.so')
source=("${_pkgname}::git+https://github.com/${_pkgname}/${_pkgname}.git")
sha512sums=('SKIP')
build() {
cd "${_pkgname}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-B build \
-S .
make VERBOSE=1 -C build
}
package() {
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install -C build
install -vDm 644 LICENSE \
-t "${pkgdir}/usr/share/licenses/${_pkgname}"
install -vDm 644 {CONTRIBUTORS,README.md} \
-t "${pkgdir}/usr/share/doc/${_pkgname}"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment