void-packages/srcpkgs/ck/template

36 lines
959 B
Bash

# Template file for 'ck'
pkgname=ck
version=0.7.0
revision=1
build_style=configure
configure_args="--prefix=/usr"
short_desc="Concurrency Kit C library"
maintainer="Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>"
license="BSD-2-Clause"
homepage="http://concurrencykit.org/"
distfiles="https://github.com/concurrencykit/ck/archive/${version}.tar.gz"
checksum=e730cb448fb0ecf9d19bf4c7efe9efc3c04dd9127311d87d8f91484742b0da24
nocross="hand-made shellscript that doesn't take triplet-prefixed compilers into account"
case "$XBPS_TARGET_MACHINE" in
aarch64*) configure_args+=" --enable-lse --disable-sse" ;;
x86_64*|i686*) ;;
*) configure_args+=" --disable-sse" ;;
esac
post_install() {
vlicense LICENSE
}
ck-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}