You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=luasrcdiet
  3. PKG_VERSION:=1.0.0
  4. PKG_RELEASE:=1
  5. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  6. PKG_LICENSE:=MIT
  7. PKG_LICENSE_FILES:=COPYRIGHT
  8. PKG_SOURCE_URL:=https://github.com/jirutka/luasrcdiet.git
  9. PKG_SOURCE_VERSION:=f138fc9359821d9201cd6b57cfa2fcbed5b9af97
  10. PKG_SOURCE_PROTO:=git
  11. PKG_MIRROR_HASH:=d4e9c396312ef3d91d86ea192569f03875459432994bc822dbdbbd0a34e306c5
  12. HOST_BUILD_DEPENDS:=lua/host
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Package/luasrcdiet
  16. SUBMENU:=Lua
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=luasrcdiet
  20. URL:=https://github.com/jirutka/luasrcdiet
  21. DEPENDS:=+lua
  22. PKGARCH:=all
  23. endef
  24. define Package/luasrcdiet/description
  25. Compresses Lua source code by removing unnecessary characters
  26. endef
  27. define Build/Compile
  28. endef
  29. define Package/luasrcdiet/install
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/luasrcdiet $(1)/usr/bin/luasrcdiet
  32. $(INSTALL_DIR) $(1)/usr/lib/lua
  33. $(CP) $(PKG_BUILD_DIR)/luasrcdiet $(1)/usr/lib/lua/
  34. endef
  35. define Host/Compile
  36. endef
  37. define Host/Install
  38. $(INSTALL_DIR) $(1)/bin
  39. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/luasrcdiet $(1)/bin/
  40. $(INSTALL_DIR) $(1)/lib/lua/5.1
  41. $(CP) $(HOST_BUILD_DIR)/luasrcdiet $(1)/lib/lua/5.1/
  42. endef
  43. $(eval $(call HostBuild))
  44. $(eval $(call BuildPackage,luasrcdiet))