-$(PKG_IPK): $(PKG_BUILD_DIR)/.built
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) libncurses.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_IPK_DIR)/usr/lib
- cp -a $(PKG_BUILD_DIR)/lib/lib*.so.* $(PKG_IPK_DIR)/usr/lib/
- mkdir -p $(PKG_IPK_DIR)/usr/share/terminfo
- for f in a/ansi d/dumb l/linux s/screen v/vt100 x/xterm x/xterm-color; do \
- mkdir -p $(PKG_IPK_DIR)/usr/share/terminfo/`dirname $${f}`; \
+$(IPKG_LIBNCURSES): $(STAGING_DIR)/usr/lib/libncurses.so
+ $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBNCURSES) ./ipkg/lib$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
+ mkdir -p $(IDIR_LIBNCURSES)/usr/lib
+ cp -fpR $(STAGING_DIR)/usr/lib/lib{ncurses,panel}*.so.* $(IDIR_LIBNCURSES)/usr/lib/
+ $(STRIP) $(IDIR_LIBNCURSES)/usr/lib/*.so*
+ mkdir -p $(IDIR_LIBNCURSES)/usr/share/terminfo
+ for f in a/ansi d/dumb l/linux s/screen v/vt100 v/vt102 x/xterm x/xterm-color; do \
+ mkdir -p $(IDIR_LIBNCURSES)/usr/share/terminfo/`dirname $${f}`; \