Add user config and add sources file. #10
1 changed files with 6 additions and 7 deletions
13
aps
13
aps
|
@ -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() {
|
||||||
|
|||||||
{
|
{
|
||||||
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"
|
||||||
|
|
Loading…
Reference in a new issue
doesn't need to be a function
maybe, let me change the code accordingly.