epkgs-x86-musl/system/toolchain

71 lines
1.2 KiB
Plaintext

#
# 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
#