implement sources

This commit is contained in:
Ohio2 2021-08-28 07:17:21 +02:00
parent 2200e5bac6
commit d0cc9bd951

8
aps
View file

@ -37,6 +37,12 @@ confirm(){
die "User gave invalid input. Exiting..." die "User gave invalid input. Exiting..."
fi fi
} }
sources_file(){
pkg_config_sources="$(cat sources | sed -n 1)"
curl -# ${pkg_config_sources} -o ${1}
tar -xf ${1} ${1}
cd ${1}
}
run_package_script() { run_package_script() {
{ {
if [ -x "${2}/${1}" ]; then if [ -x "${2}/${1}" ]; then
@ -62,6 +68,8 @@ install_local_package() {
pkg_config_ver="0" pkg_config_ver="0"
pkg_config_makedepends="" pkg_config_makedepends=""
pkg_config_depends="" pkg_config_depends=""
# Download sources.
sources_file ${pkg_name}
# Install package # Install package
mkdir -p "${pkg_path}/payload" mkdir -p "${pkg_path}/payload"
. "${pkg_path}/package" . "${pkg_path}/package"