Switch to new download format, update dependencies and build docs

This commit is contained in:
EnumDev committed 2026-09-25 19:52:09 +03:00
1 parent 9ea9e895c9
commit a14bb14eb6
2 files changed
+17 -12

No files matched your search

+9 -1
View File
@@ -1,7 +1,7 @@
name: libuv name: libuv
description: Cross-platform asynchronous I/O description: Cross-platform asynchronous I/O
version: 1.52.1 version: 1.52.1
revision: 2 revision: 3
url: https://github.com/libuv/libuv url: https://github.com/libuv/libuv
license: MIT,CC-BY-4.0,ISC license: MIT,CC-BY-4.0,ISC
maintainers: maintainers:
@@ -10,3 +10,11 @@ architecture: any
type: source type: source
depends: depends:
- glibc - glibc
- libnsl
make_depends:
- python-sphinx
downloads:
- url: https://github.com/libuv/libuv/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 478baf2599bfbc882c355288c9cb6f92e0e7dda435fa04031fa5b607cf3f414c
+8 -11
View File
@@ -2,15 +2,9 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://github.com/libuv/libuv/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory # The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location # This function is used for putting downloaded files to the correct location or applying patches
prepare() { prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE" cd "$BPM_SOURCE"
./autogen.sh ./autogen.sh
} }
@@ -20,6 +14,7 @@ prepare() {
build() { build() {
./configure --prefix=/usr ./configure --prefix=/usr
make make
make man -C docs
} }
# The check function is executed in the source directory # The check function is executed in the source directory
@@ -27,7 +22,7 @@ build() {
check() { check() {
# Disable failing tests # Disable failing tests
sed -e '/udp_multicast_join/d' -e '/tcp_connect6_link_local/d' -i test/test-list.h sed -e '/udp_multicast_join/d' -e '/tcp_connect6_link_local/d' -i test/test-list.h
make check make check
} }
@@ -36,7 +31,9 @@ check() {
package() { package() {
make DESTDIR="$BPM_OUTPUT" install make DESTDIR="$BPM_OUTPUT" install
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libuv/LICENSE # Install manpage
install -Dm644 "$BPM_SOURCE"/LICENSE-docs "$BPM_OUTPUT"/usr/share/licenses/libuv/LICENSE-docs install -Dm644 docs/build/man/libuv.1 "$BPM_OUTPUT"/usr/share/man/man1/libuv.1
install -Dm644 "$BPM_SOURCE"/LICENSE-extra "$BPM_OUTPUT"/usr/share/licenses/libuv/LICENSE-extra
# Install pacakge licenses
install -Dm644 "$BPM_SOURCE"/LICENSE* -t "$BPM_OUTPUT"/usr/share/licenses/libuv
} }