diff --git a/spkg b/spkg index 72639b1..1d3807c 100755 --- a/spkg +++ b/spkg @@ -19,7 +19,7 @@ removepkg() { prefix=$2 cd /usr/src/"${pkgname}" || exit 2 { - source ./PACKAGE + . ./PACKAGE "pkg_uninstall" "${prefix}" } sed "s/${pkgname} ${pkg_ver}//" "${prefix}"/var/cache/spkg.cache @@ -30,12 +30,12 @@ instpkg() { mkdir -p "${tmpdir}"/spkg/work/"${1}"-work/ cd "${tmpdir}"/spkg/work/"${1}"-work/ || exit 2 mkdir -p "${prefix}"/usr/src/"${pkgname}" - wget "${prefix}"/usr/src/"${pkgname}" "${source}"/"${pkgname}"/PACKAGE + wget -O "${prefix}"/usr/src/"${pkgname}" "${source}"/"${pkgname}"/PACKAGE cd "${prefix}"/usr/src/"${pkgname}" || exit 2 export PREFIX="${prefix}" export PKGNAME="${pkgname}" { - source ./PACKAGE + . ./PACKAGE "pkg_install" "${prefix}" } sed a\ "${pkgname} ${pkg_ver}" "${prefix}"/var/cache/spkg.cache > "${prefix}"/var/cache/spkg.cache