sys-apps/netctl-1.9: Update to multiarch

Change-Id: I0f167eb2f1777679b15c81a37efa215d4259b387
This commit is contained in:
Stefan Muenzel 2015-05-02 17:31:07 +08:00 committed by Wulf C. Krueger
parent 4c37ccdc0d
commit 95362ad151

View file

@ -22,7 +22,14 @@ DEPENDENCIES="
sys-apps/dialog sys-apps/dialog
virtual/dhcp-client virtual/dhcp-client
" "
DEFAULT_SRC_INSTALL_PARAMS+=( DESTDIR="${IMAGE}" )
src_prepare() {
default
LIBDIR=/usr/$(exhost --target)/lib
BINDIR=/usr/$(exhost --target)/bin
edo sed -e "s#/usr/lib#${LIBDIR}#" -i Makefile
edo sed -e "s#/usr/bin#${BINDIR}#" -i Makefile
}
src_compile() { src_compile() {
# nothing to do # nothing to do
@ -32,12 +39,6 @@ src_compile() {
src_install() { src_install() {
default default
if [ "lib64" = "${LIBDIR}" ]
then
edo mv "${IMAGE}/usr/lib/"* "${IMAGE}/usr/lib64"
edo rmdir "${IMAGE}/usr/lib/"
fi
keepdir /etc/netctl/interfaces keepdir /etc/netctl/interfaces
keepdir /etc/netctl/hooks keepdir /etc/netctl/hooks
} }