From 60f106ab68906c862cb7456065306eaf17cd3066 Mon Sep 17 00:00:00 2001 From: Amr Hassan Date: Sun, 22 Feb 2015 15:52:52 +0200 Subject: [PATCH] UUID: Add new package Signed-off-by: Amr Hassan --- lang/uuid/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lang/uuid/Makefile diff --git a/lang/uuid/Makefile b/lang/uuid/Makefile new file mode 100644 index 000000000..7ec89e353 --- /dev/null +++ b/lang/uuid/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2006-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=uuid +PKG_VERSION:=0.2.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=version_$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/Tieske/$(PKG_NAME)/archive/ +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-version_$(PKG_VERSION) +PKG_MAINTAINER:=Amr Hassan +PKG_LICENSE=Apache-2.0 + +LUA_MODULE_PATH:=/usr/lib/lua + +include $(INCLUDE_DIR)/package.mk + +define Package/uuid + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=uuid + URL:=https://github.com/Tieske/uuid + DEPENDS:=+lua +luasocket +endef + +define Package/uuid/description + A pure Lua uuid generator +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/uuid/install + $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH) + $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/uuid.lua $(1)/$(LUA_MODULE_PATH)/uuid.lua +endef + +$(eval $(call BuildPackage,uuid))