void-packages/srcpkgs/libuv/template

33 lines
802 B
Text
Raw Normal View History

2014-05-29 17:52:44 +00:00
# Template build file for 'libuv'
pkgname=libuv
2014-11-21 08:31:27 +00:00
version=1.0.0
2014-11-21 08:58:17 +00:00
revision=2
short_desc="Multi-platform support library with a focus on asynchronous I/O"
2014-05-29 17:52:44 +00:00
maintainer="Enno Boland <eb@s01.de>"
license="BSD/ISC"
2014-11-21 08:31:27 +00:00
build_style="gnu-configure"
2014-05-29 17:52:44 +00:00
homepage="http://libuv.org/"
distfiles="https://github.com/joyent/${pkgname}/archive/v${version}.tar.gz"
2014-11-21 08:31:27 +00:00
checksum=c8e6a31044fc9e19015a2ef78e6be814a7f7ef146788a613c1e10bb158175fd4
hostmakedepends="automake libtool"
2014-05-29 17:52:44 +00:00
2014-11-21 08:31:27 +00:00
pre_configure() {
./autogen.sh
2014-05-29 17:52:44 +00:00
2014-11-21 08:46:14 +00:00
sed "s:%VERSION%:${version}:g" $FILESDIR/libuv.pc.in > libuv.pc
2014-11-21 08:31:27 +00:00
}
2014-05-29 17:52:44 +00:00
2014-11-21 08:31:27 +00:00
post_install() {
vinstall libuv.pc 644 /usr/lib/pkgconfig
2014-05-29 17:52:44 +00:00
}
libuv-devel_package() {
depends="libuv>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}