[packages] licensing: Licensing metadata added to many packages
[packages.git] / lang / python-rsfile / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=RSFile
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pypi.python.org/packages/source/R/RSFile
16 PKG_MD5SUM:=06f53cbcc268039212a853703abcb85a
17
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_BUILD_DEPENDS:=python
23
24 include $(INCLUDE_DIR)/package.mk
25 $(call include_mk, python-package.mk)
26
27 define Package/python-rsfile
28   SUBMENU:=Python
29   SECTION:=lang
30   CATEGORY:=Languages
31   TITLE:=python-rsfile
32   URL:=http://pypi.python.org/pypi/RSFile/
33   DEPENDS:=+python
34   MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
35 endef
36
37 define Package/python-rsfile/description
38   RockSolidTools' file I/O implementation
39 endef
40
41 define Build/Compile
42         $(INSTALL_DIR) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
43         $(CP) \
44                 $(PKG_BUILD_DIR)/rsfile \
45                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
46         $(CP) \
47                 $(PKG_BUILD_DIR)/rsbackends \
48                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
49 endef
50
51 define Package/python-rsfile/install
52         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
53         $(CP) \
54                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/rsfile \
55                 $(1)$(PYTHON_PKG_DIR)
56         $(CP) \
57                 $(PKG_BUILD_DIR)/rsbackends \
58                 $(1)$(PYTHON_PKG_DIR)
59 endef
60
61 $(eval $(call BuildPackage,python-rsfile))