This commit is contained in:
Liam Waldron 2023-05-01 12:23:07 -04:00
parent e989e8b7a3
commit 4bb403a4b8

71
system/musl Normal file
View File

@ -0,0 +1,71 @@
#
# 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=("")
# 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 \
--includedir=${PREFIX}/include \
--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
#