blob: 443ce80cb4b46902031235132445f4c3dbbc643c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
pkgver=1.33.1
pkgrel=1
pkgdesc="Cross-platform asychronous I/O"
url="https://libuv.org"
arch="all"
license="MIT BSD ISC"
makedepends_build="automake autoconf libtool"
makedepends_host="linux-headers"
subpackages="$pkgname-static $pkgname-dev $pkgname-dbg"
source="https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz
revert-test-udp-multicast-join-1.31.patch
"
builddir="$srcdir/$pkgname-v$pkgver"
prepare() {
default_prepare
cd "$builddir"
sh autogen.sh
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release
}
check() {
cd "$builddir"
# see https://github.com/libuv/libuv/issues/2307
case $CARCH in
x86*)
if test $DRONE; then
sed -i "s/TEST_.*(ipc_closed_handle)//g" test/test-list.h
fi
;;
esac
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="58d1568beaec42052a2c11efdae9f75f4bf5d3e428c863d48cdc73874083b9395b509dac8b187524a09f4ceae1659ea1dfceb9ffb621e9a7574bb12ac76051d4 libuv-v1.33.1.tar.gz
f341410a6c693d4ef6c11b72d13d28690dcab3978b500c9cdf5ee5dbee0b9703b92d39f117109c5b3069831b5c92d804fc161de107a95f42dfdad0ffcb96868b revert-test-udp-multicast-join-1.31.patch"
|