READLINE_LICENSE = GPLv3+
READLINE_LICENSE_FILES = COPYING
-define READLINE_INSTALL_TARGET_CMDS
- $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
- $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(@D) install-shared uninstall-doc
- chmod 775 $(TARGET_DIR)/usr/lib/libreadline.so.$(READLINE_VERSION) \
- $(TARGET_DIR)/usr/lib/libhistory.so.$(READLINE_VERSION)
- $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) \
- $(TARGET_DIR)/usr/lib/libreadline.so.$(READLINE_VERSION) \
- $(TARGET_DIR)/usr/lib/libhistory.so.$(READLINE_VERSION)
+define READLINE_PURGE_EXAMPLES
+ rm -rf $(TARGET_DIR)/usr/share/readline
endef
+READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_PURGE_EXAMPLES
+
$(eval $(autotools-package))