-$(IPKG_IPKG): $(PKG_BUILD_DIR)/$(PKG_NAME)
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_IPKG) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(IDIR_IPKG)/bin
- cp -a $(PKG_BUILD_DIR)/.libs/ipkg-cl $(IDIR_IPKG)/bin/ipkg
- $(STRIP) $(IDIR_IPKG)/bin/*
- mkdir -p $(IDIR_IPKG)/lib
- cp -a $(PKG_BUILD_DIR)/.libs/libipkg.so* $(IDIR_IPKG)/lib/
- $(STRIP) $(IDIR_IPKG)/lib/*
- mkdir -p $(PACKAGE_DIR)
+$(IPKG_IPKG):
+ install -d -m0755 $(IDIR_IPKG)/bin
+ $(CP) $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG)/bin/ipkg
+ install -d -m0755 $(IDIR_IPKG)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG)/usr/lib/
+ $(RSTRIP) $(IDIR_IPKG)