void-packages/srcpkgs/libuv/template

47 lines
1.3 KiB
Plaintext

# Template build file for 'libuv'
pkgname=libuv
version=0.10.27
revision=3
short_desc="Multi-platform support library with a focus on asynchronous I/O"
maintainer="Enno Boland <eb@s01.de>"
license="BSD/ISC"
homepage="http://libuv.org/"
distfiles="https://github.com/joyent/${pkgname}/archive/v${version}.tar.gz"
checksum=19e52f6abbd6ad8bce865b548d7ab3e1e071b159503a1d0c5664fa4b97fb5c7f
do_build() {
make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="$STRIP"
}
do_install() {
vinstall LICENSE 644 \
usr/share/licenses/${pkgname}
vinstall AUTHORS 644 \
usr/share/doc/${pkgname}
vinstall README.md 644 \
usr/share/doc/${pkgname}
vinstall include/uv.h 644 usr/include
vinstall include/uv-private/uv-unix.h 644 \
usr/include/uv-private
vinstall include/uv-private/uv-linux.h 644 \
usr/include/uv-private
vinstall $FILESDIR/libuv.pc 644 /usr/lib/pkgconfig
vinstall libuv.a 644 "usr/lib"
vinstall libuv.so 644 "usr/lib"
mv $DESTDIR/usr/lib/libuv.so $DESTDIR/usr/lib/libuv.so.${version%.*}
ln -sr $DESTDIR/usr/lib/libuv.so.${version%.*} $DESTDIR/usr/lib/libuv.so
}
libuv-devel_package() {
depends="libuv>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}