Add user config and add sources file. #10

Merged
hippoz merged 6 commits from Ohio2/aps:master into master 2021-08-29 10:26:44 +03:00
Showing only changes of commit 3014cb3241 - Show all commits

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"