|
Lucio Andrés Illanes Albornoz |
6961e7 |
#
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
#
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
pkg_autoconf_2_64_host_install_make_post() {
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
local _bin_fname="" _fname="";
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop mkdir "${PKG_DESTDIR}/libexec/autoconf-${PKG_VERSION}" || return 1;
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
for _bin_fname in \
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
$(find "${PKG_DESTDIR}/bin" -type f -perm /0111); do
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop mv "${_bin_fname}" "${PKG_DESTDIR}/libexec/autoconf-${PKG_VERSION}" || return 1;
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
cat >"${_bin_fname}-${PKG_VERSION}" <
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
#!/bin/sh
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export ACLOCAL="\${0%/*}/aclocal-1.11";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AC_MACRODIR="\${0%/*}/../share/autoconf-${PKG_VERSION}";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AUTOCONF="\${0%/*}/../libexec/autoconf-${PKG_VERSION}/autoconf";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AUTOHEADER="\${0%/*}/../libexec/autoconf-${PKG_VERSION}/autoheader";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AUTOM4TE="\${0%/*}/../libexec/autoconf-${PKG_VERSION}/autom4te";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AUTOM4TE_CFG="\${0%/*}/../share/autoconf-${PKG_VERSION}/autom4te.cfg";
|
|
Lucio Andrés Illanes Albornoz |
e86c73 |
export autom4te_perllibdir="\${0%/*}/../share/autoconf-${PKG_VERSION}";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AUTOMAKE="\${0%/*}/automake-1.11";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export AUTOPOINT="\${0%/*}/../libexec/autoconf-${PKG_VERSION}/autopoint";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
export LIBTOOLIZE="\${0%/*}/../libexec/autoconf-${PKG_VERSION}/libtoolize";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
exec "\${0%/*}/../libexec/autoconf-${PKG_VERSION}/${_bin_fname##*/}" "\${@}";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
EOF
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
[ "${?}" -ne 0 ] && return 1;
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop chmod 0755 "${_bin_fname}-${PKG_VERSION}";
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
done;
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop mv "${PKG_DESTDIR}/share/autoconf-${PKG_VERSION}/autom4te.cfg" "${PKG_DESTDIR}/share/autoconf" || return 1;
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop rm "${PKG_DESTDIR}/share/autoconf-${PKG_VERSION}";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop mv "${PKG_DESTDIR}/share/autoconf" "${PKG_DESTDIR}/share/autoconf-${PKG_VERSION}";
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop rm "${PKG_DESTDIR}/share/info/dir" || return 1;
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
for _fname in \
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
$(find "${PKG_DESTDIR}/share/man" -type f -name "*.[0-9]*") \
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
$(find "${PKG_DESTDIR}/share/info" -type f -name "*.info*"); do
|
|
Lucio Andrés Illanes Albornoz |
9d255d |
rtl_fileop mv "${_fname}" "${_fname%.*}-${PKG_VERSION}.${_fname##*.}" || return 1;
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
done;
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
};
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
|
|
Lucio Andrés Illanes Albornoz |
6961e7 |
# vim:filetype=sh textwidth=0
|