Add user config and add sources file. #10
1 changed files with 8 additions and 0 deletions
8
aps
8
aps
|
@ -37,6 +37,12 @@ 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
|
||||
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue