Compare commits

...

3 Commits

4 changed files with 140 additions and 3 deletions

66
system/bash Normal file
View File

@ -0,0 +1,66 @@
#
# bash
#
# Package metadata
PACKAGE_NAME="bash"
PACKAGE_VER="5.2.015"
PACKAGE_DESC="GNU Bourne Again Shell"
MAINTAINER="liamwaldron@everestlinux.org"
LICENSE="GPL v3"
ARCH="x86"
INCLUDED_FILES=("/bin/bash")
# Integrity checking
SHA256SUMS="8b1079684f9aaf84de293771c78b83ff4b69588eeb34138ff331f26926dd1ae6"
# Dependency information
DEPENDS=("")
CONFLICTS=("")
# Source information
PACKAGE_SRC="https://github.com/robxu9/bash-static/releases/download/5.2.015-1.2.3-2/bash-linux-x86_64"
SOURCES="bash-linux-x86_64"
# Installation
getsource() {
wget $PACKAGE_SRC
}
buildpkg() {
chmod +x ${SOURCES}
}
installpkg() {
mkdir ${BLDR_OUT_DIR}/pkgs/bash
mv ${SOURCES} ${BLDR_OUT_DIR}/pkgs/bash/bash
touch ${BLDR_OUT_DIR}/pkgs/bash/.ispkg
}
installpkg_system() {
printf "Not supported for this package.\n"
exit 1
}
removepkg() {
rm -rf ${BLDR_OUT_DIR}/pkgs/bash
}
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 bash
#

View File

@ -31,7 +31,7 @@ getsource() {
buildpkg() {
curl https://git.everestlinux.org/EverestLinux/sys-pkg-configs/raw/branch/main/config.busybox-1.36.0 -o .config
make ${MAKEFLAGS} ${CFLAGS} ${CXXFLAGS} ARCH="x86_64" CROSS_COMPILE="x86_64-linux-musl-" # these MUST be set
make ARCH="x86_64" CROSS_COMPILE="x86_64-linux-musl-" # these MUST be set
}
installpkg() {
@ -39,6 +39,7 @@ installpkg() {
CONFIG_PREFIX="${BLDR_OUT_DIR}/pkgs/busybox" install
cp -v examples/depmod.pl ${TOOLCHAIN_PATH}/bin
chmod -v 755 ${TOOLCHAIN_PATH}/bin/depmod.pl
touch ${BLDR_OUT_DIR}/pkgs/busybox/.ispkg
# Never install files to /bin, they will get
# overwritten when the user pulls a new update
}
@ -68,5 +69,5 @@ updatepkg_system() {
}
#
# end nano
# end busybox
#

View File

@ -9,7 +9,7 @@ PACKAGE_DESC="musl C library"
MAINTAINER="liamwaldron@everestlinux.org"
LICENSE="MIT"
ARCH="x86"
INCLUDED_FILES=("")
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"

70
system/toolchain Normal file
View File

@ -0,0 +1,70 @@
#
# toolchain
#
# Package metadata
PACKAGE_NAME="toolchain"
PACKAGE_VER="1.0.0"
PACKAGE_DESC="Everest Linux system toolchain"
MAINTAINER="liamwaldron@everestlinux.org"
LICENSE="N/A"
ARCH="x86"
INCLUDED_FILES=("/bin/*" "/lib/*" "/include/*" "/libexec/*" "/share/*")
# Integrity checking
SHA256SUMS="a996907fc87e8c0d4603acd788c6009d1adeb3c99be99d07fc3df3256b52adfe"
# Dependency information
DEPENDS=("")
CONFLICTS=("")
# Source information
PACKAGE_SRC="https://musl.cc/x86_64-linux-musl-native.tgz"
SOURCES=("x86_64-linux-musl-native.tgz" "x86_64-linux-musl-native")
# Installation
getsource() {
wget $PACKAGE_SRC
tar xf ${SOURCES[0]}
}
buildpkg() {
printf "Installing toolchain...\n"
sleep 1
}
installpkg() {
mv -v ${SOURCES[1]} toolchain
mv -v toolchain ${BLDR_OUT_DIR}/pkgs
touch ${BLDR_OUT_DIR}/pkgs/toolchain/.ispkg
# Never install files to /bin, they will get
# overwritten when the user pulls a new update
}
installpkg_system() {
printf "Not supported for this package.\n"
exit 1
}
removepkg() {
rm -rf ${BLDR_OUT_DIR}/pkgs/toolchain
}
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
#