From d0cc9bd951420eb3dac73be1674e722ae4d7fe60 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Sat, 28 Aug 2021 07:17:21 +0200 Subject: [PATCH] implement sources --- aps | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aps b/aps index d6b1f32..6356b32 100755 --- a/aps +++ b/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"