1
0

Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=https://github.com/Tieske/uuid.git
  15. PKG_SOURCE_VERSION:=version_$(PKG_VERSION)
  16. PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com>
  17. PKG_LICENSE=Apache-2.0
  18. LUA_MODULE_PATH:=/usr/lib/lua
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/uuid
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=uuid
  25. URL:=https://github.com/Tieske/uuid
  26. DEPENDS:=+lua +luasocket
  27. endef
  28. define Package/uuid/description
  29. A pure Lua uuid generator
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. endef
  35. define Package/uuid/install
  36. $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)
  37. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/uuid.lua $(1)/$(LUA_MODULE_PATH)/uuid.lua
  38. endef
  39. $(eval $(call BuildPackage,uuid))