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.

48 lines
1015 B

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=uuid
  9. PKG_VERSION:=0.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=version_$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/Tieske/$(PKG_NAME)/archive/
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-version_$(PKG_VERSION)
  14. PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com>
  15. PKG_LICENSE=Apache-2.0
  16. LUA_MODULE_PATH:=/usr/lib/lua
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/uuid
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=uuid
  23. URL:=https://github.com/Tieske/uuid
  24. DEPENDS:=+lua +luasocket
  25. endef
  26. define Package/uuid/description
  27. A pure Lua uuid generator
  28. endef
  29. define Build/Configure
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/uuid/install
  34. $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)
  35. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/uuid.lua $(1)/$(LUA_MODULE_PATH)/uuid.lua
  36. endef
  37. $(eval $(call BuildPackage,uuid))