summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_install.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr/pkg_install.subr')
-rw-r--r--subr/pkg_install.subr5
1 files changed, 4 insertions, 1 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr
index 56e306c1..47aa121d 100644
--- a/subr/pkg_install.subr
+++ b/subr/pkg_install.subr
@@ -3,6 +3,7 @@
#
pkg_install() {
+ local _pkglist_name="";
ex_rtl_fileop mkdir "${PKG_PREFIX}";
find "${PKG_DESTDIR}" \
-type d -exec chmod 0755 {} \;;
@@ -20,7 +21,9 @@ pkg_install() {
if [ ! -e "${PREFIX}/pkglist.${PKG_BUILD_TYPE}" ]; then
touch "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
fi;
- echo "${PKG_NAME}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
+ _pkglist_name="${PKG_BASE_DIR##*/}";
+ _pkglist_name="${_pkglist_name%%-*}";
+ echo "${_pkglist_name}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}";
};
# vim:filetype=sh