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..." 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() {

doesn't need to be a function

doesn't need to be a function
Outdated
Review

maybe, let me change the code accordingly.

maybe, let me change the code accordingly.
{ {
if [ -x "${2}/${1}" ]; then if [ -x "${2}/${1}" ]; then
@ -69,7 +63,12 @@ install_local_package() {
pkg_config_makedepends="" pkg_config_makedepends=""
pkg_config_depends="" pkg_config_depends=""
# Download sources. # 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 # Install package
mkdir -p "${pkg_path}/payload" mkdir -p "${pkg_path}/payload"
. "${pkg_path}/package" . "${pkg_path}/package"