diff --git a/system/musl b/system/musl new file mode 100644 index 0000000..2b1de16 --- /dev/null +++ b/system/musl @@ -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 +#