[packages] python-rsfile: Add new package python-rsfile
[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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/python-rsfile
25   SUBMENU:=Python
26   SECTION:=lang
27   CATEGORY:=Languages
28   TITLE:=python-rsfile
29   URL:=http://pypi.python.org/pypi/RSFile/
30   DEPENDS:=+python
31   MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
32 endef
33
34 define Package/python-rsfile/description
35   RockSolidTools' file I/O implementation
36 endef
37
38 define Build/Compile
39         $(INSTALL_DIR) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
40         $(CP) \
41                 $(PKG_BUILD_DIR)/rsfile \
42                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
43         $(CP) \
44                 $(PKG_BUILD_DIR)/rsbackends \
45                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
46 endef
47
48 define Package/python-rsfile/install
49         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
50         $(CP) \
51                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/rsfile \
52                 $(1)$(PYTHON_PKG_DIR)
53         $(CP) \
54                 $(PKG_BUILD_DIR)/rsbackends \
55                 $(1)$(PYTHON_PKG_DIR)
56 endef
57
58 $(eval $(call BuildPackage,python-rsfile))