Switch to new download format, update dependencies and build docs
This commit is contained in:
2 files changed
+17
-12
No files matched your search
@@ -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 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
|
||||
# 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() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
|
||||
cd "$BPM_SOURCE"
|
||||
./autogen.sh
|
||||
}
|
||||
@@ -20,6 +14,7 @@ prepare() {
|
||||
build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make man -C docs
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
@@ -27,7 +22,7 @@ build() {
|
||||
check() {
|
||||
# Disable failing tests
|
||||
sed -e '/udp_multicast_join/d' -e '/tcp_connect6_link_local/d' -i test/test-list.h
|
||||
|
||||
|
||||
make check
|
||||
}
|
||||
|
||||
@@ -36,7 +31,9 @@ check() {
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libuv/LICENSE
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE-docs "$BPM_OUTPUT"/usr/share/licenses/libuv/LICENSE-docs
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE-extra "$BPM_OUTPUT"/usr/share/licenses/libuv/LICENSE-extra
|
||||
# Install manpage
|
||||
install -Dm644 docs/build/man/libuv.1 "$BPM_OUTPUT"/usr/share/man/man1/libuv.1
|
||||
|
||||
# Install pacakge licenses
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE* -t "$BPM_OUTPUT"/usr/share/licenses/libuv
|
||||
}
|
||||
Reference in new issue
Block a user