include $(TOPDIR)/rules.mk PKG_NAME:=nanonote-files PKG_VERSION:=1.2 include $(INCLUDE_DIR)/package.mk define Package/nanonote-files/Default MAINTAINER:="Xiangfu Liu" TITLE:=NanoNote Files SECTION:=utils CATEGORY:=Utilities endef define Package/nanonote-example-files $(call Package/nanonote-files/Default) TITLE+=(Example Files) endef define Package/nanonote-script-files $(call Package/nanonote-files/Default) TITLE+=(Script Files) endef define Package/nanonote-base-files $(call Package/nanonote-files/Default) TITLE+=(Base Files) endef define Package/nanonote-data-files $(call Package/nanonote-files/Default) TITLE+=(Date Files) endef define Build/Compile endef define Package/nanonote-example-files/install $(CP) ./example-files/* $(1)/ endef define Package/nanonote-script-files/install $(CP) ./script-files/* $(1)/ endef define Package/nanonote-base-files/install $(CP) ./base-files/* $(1)/ endef define Package/nanonote-data-files/install $(INSTALL_DIR) $(1)/usr/share/nanonote/ $(CP) ./data/qi_lb60/* $(1)/usr/share/nanonote/ endef define Package/nanonote-data-files/postinst #! /bin/sh mv -f $${IPKG_INSTROOT}/usr/share/nanonote/files/etc/* $${IPKG_INSTROOT}/etc/ endef $(eval $(call BuildPackage,nanonote-example-files)) $(eval $(call BuildPackage,nanonote-script-files)) $(eval $(call BuildPackage,nanonote-base-files)) $(eval $(call BuildPackage,nanonote-data-files))