epkgs-x86-musl/system/musl
2023-05-01 12:35:32 -04:00

71 lines
1.3 KiB
Plaintext

#
# musl
#
# Package metadata
PACKAGE_NAME="musl"
PACKAGE_VER="1.2.3"
PACKAGE_DESC="musl C library"
MAINTAINER="liamwaldron@everestlinux.org"
LICENSE="MIT"
ARCH="x86"
INCLUDED_FILES=("/include/*" "/lib/crt1.o" "/lib/crt1.o" "/lib/crtn.o" "/lib/libc.a" "/lib/libcrypt.a" "/lib/libc.so" "/lib/libdl.a" "/lib/libm.a" "/lib/libpthread.a" "/lib/libresolv.a" "/lib/librt.a" "/lib/libutil.a" "/lib/libxnet.a" "/lib/rcrt1.o" "/lib/Scrt1.o")
# Integrity checking
SHA256SUMS="6beb3edefdf9cb77dbf6ee17d89825abb69ce563860ab71e4bc9f2867ba7b5ea"
# Dependency information
DEPENDS=("")
CONFLICTS=("")
# Source information
PACKAGE_SRC="https://musl.libc.org/releases/musl-1.2.3.tar.gz"
SOURCES=("musl-1.2.3.tar.gz" "musl-1.2.3")
# Installation
getsource() {
wget $PACKAGE_SRC
tar xf ${SOURCES[0]}
cd ${SOURCES[1]}
}
buildpkg() {
./configure \
--prefix=${BLDR_OUT_DIR}/pkgs/musl \
--target="x86_64-linux-musl" \
CFLAGS="${CFLAGS}"
make ${MAKEFLAGS}
}
installpkg() {
make install ${MAKEFLAGS}
}
installpkg_system() {
printf "Not supported for this package.\n"
exit 1
}
removepkg() {
rm -rf ${BLDR_OUT_DIR}/pkgs/musl
}
removepkg_system() {
printf "Not supported for this package.\n"
exit 1
}
updatepkg() {
buildpkg "$@"
installpkg "$@"
}
updatepkg_system() {
printf "Not supported for this package.\n"
exit 1
}
#
# end nano
#