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 d0cc9bd951 - Show all commits

8
aps
View file

@ -37,6 +37,12 @@ confirm(){
die "User gave invalid input. Exiting..."
fi
}
sources_file(){

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.
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
@ -62,6 +68,8 @@ install_local_package() {
pkg_config_ver="0"
pkg_config_makedepends=""
pkg_config_depends=""
# Download sources.
sources_file ${pkg_name}
# Install package
mkdir -p "${pkg_path}/payload"
. "${pkg_path}/package"