12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- set -e
- program=libuv
- version=v1.44.1
- pkgversion="${version#v*}"
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://dist.libuv.org/dist/${version}/$tarname
- homepage=https://www.libuv.org
- license=MIT
- description="
- An asynchronous I/O library.
- libuv is a multi-platform support library with a focus on asynchronous
- I/O. See $homepage for more information.
- "
- docs="AUTHORS CONTRIBUTING.md LICENSE* MAINTAINERS.md README.md"
- docsdir="${docdir}/${program}-${pkgversion}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- sh ./autogen.sh
- ./configure \
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
-
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|