12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- set -e
- program=musl-compat
- version=20210503_77a1509
- release=2
- pkgcategory=libs
- tarname=${program}-${version}.tar.lz
- fetch="
- https://rsync.dragora.org/current/sources/$tarname
- https://mirror.cedia.org.ec/dragora/current/sources/$tarname
- "
- description="
- Extra utilities and headers to complement Musl.
- A set of headers and small utilities for use on musl libc systems,
- for providing some minimal glibc compatibility.
- The code is derived from software contributed to The NetBSD Foundation,
- mostly rewritten to be used in musl-compatible systems by Timo Teras.
- The implementation of the iconv utility was written by Rich Felker.
- "
- homepage=https://dev.midipix.org/compat/musl-compat
- license="GPLv2+, MIT | BSD"
- docs=README.md
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- make -j${jobs} V=1 \
- prefix=/usr CFLAGS="$QICFLAGS" DESTDIR="$destdir" install
-
- rm -f "${destdir}/usr/bin/ldconfig"
- strip --strip-unneeded "${destdir}"/usr/bin/* || true
-
- mkdir -p "${destdir}"/usr/sbin
- cat << EOF > "${destdir}"/usr/sbin/ldconfig
- true
- EOF
- chmod 755 "${destdir}"/usr/sbin/ldconfig
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|