summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-06-07 15:56:15 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-06-07 15:56:15 +0000
commit9f1c89be2a0933c58c9d06deff60498add7a33f7 (patch)
treef2521ded6427b1d12483828ed5ffbdaa662718d3
parent7670fc6b9bca0938df3a28f505ccf1a4e35a8ebd (diff)
downloadmidipix_build-9f1c89be2a0933c58c9d06deff60498add7a33f7.tar.bz2
midipix_build-9f1c89be2a0933c58c9d06deff60498add7a33f7.tar.xz
subr/pkg_install.subr: derive pkglist.${PKG_BUILD_TYPE} items from ${PKG_BASE_DIR} instead of ${PKG_NAME} (via midipix.)
-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