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.

53 lines
1.1 KiB

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