void-packages/srcpkgs/libdill/template

32 lines
780 B
Bash

# Template file for 'libdill'
pkgname=libdill
version=2.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Structured concurrency library for C"
maintainer="Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>"
license="MIT"
homepage="http://libdill.org/"
distfiles="https://github.com/sustrik/libdill/archive/${version}.tar.gz"
checksum=b61f5f6385db8019c7df22e3c0e9176c5e7b572058ca698b71081c2bb9b0dbb3
pre_configure() {
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
autoreconf -fi
}
post_install() {
vlicense COPYING
}
libdill-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
}
}