diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-06-07 15:56:15 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-06-07 15:56:15 +0000 |
commit | 9f1c89be2a0933c58c9d06deff60498add7a33f7 (patch) | |
tree | f2521ded6427b1d12483828ed5ffbdaa662718d3 | |
parent | 7670fc6b9bca0938df3a28f505ccf1a4e35a8ebd (diff) | |
download | midipix_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.subr | 5 |
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 |