fix functions

This commit is contained in:
Ohio2 2021-08-28 14:37:37 +02:00
parent 4375e666ee
commit 3014cb3241

13
aps
View file

@ -37,12 +37,6 @@ confirm(){
die "User gave invalid input. Exiting..."
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() {
{
if [ -x "${2}/${1}" ]; then
@ -69,7 +63,12 @@ install_local_package() {
pkg_config_makedepends=""
pkg_config_depends=""
# Download sources.
sources_file ${pkg_name}
pkg_config_sources="$(cat sources | sed -n 1)"
pkg_config_sources_to="$(cat sources | sed -n 1)"
pkg_config_sources_to="$(echo ${pkg_config_sources_to} | sed s|.*/||)"
curl -# ${pkg_config_sources} -o ${pkg_config_sources_to}
tar -xf ${pkg_config_sources_to} ${pkg_name}
cd ${pkg_name}
# Install package
mkdir -p "${pkg_path}/payload"
. "${pkg_path}/package"