2014-05-29 17:52:44 +00:00
|
|
|
# Template build file for 'libuv'
|
|
|
|
pkgname=libuv
|
2014-10-23 19:42:28 +00:00
|
|
|
version=0.10.29
|
2014-08-20 14:11:47 +00:00
|
|
|
revision=1
|
2014-05-29 19:13:17 +00:00
|
|
|
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"
|
|
|
|
homepage="http://libuv.org/"
|
|
|
|
distfiles="https://github.com/joyent/${pkgname}/archive/v${version}.tar.gz"
|
2014-10-23 19:42:28 +00:00
|
|
|
checksum=a778908e1c658138b353fdb4d5f8e330384bd4984e973233e828bdc69dce2718
|
2014-05-29 17:52:44 +00:00
|
|
|
|
|
|
|
do_build() {
|
2014-05-29 19:13:17 +00:00
|
|
|
make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
|
2014-05-29 17:52:44 +00:00
|
|
|
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"
|
2014-05-29 19:59:18 +00:00
|
|
|
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
|
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"
|
|
|
|
}
|
|
|
|
}
|