Switch to new download format, update dependencies and build docs
This commit is contained in:
2 files changed
+16
-11
No files matched your search
@@ -1,7 +1,7 @@
|
||||
name: libuv
|
||||
description: Cross-platform asynchronous I/O
|
||||
version: 1.52.1
|
||||
revision: 2
|
||||
revision: 3
|
||||
url: https://github.com/libuv/libuv
|
||||
license: MIT,CC-BY-4.0,ISC
|
||||
maintainers:
|
||||
@@ -10,3 +10,11 @@ architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- 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
|
||||
@@ -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
|
||||
@@ -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