pyload: do not depend on python-django
[packages.git] / net / pyload / Makefile
1 #
2 # Copyright (C) 2011-2014 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:=pyload
11 PKG_VERSION:=0.4.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-src-v$(PKG_VERSION).zip
15 PKG_SOURCE_URL:=http://download.pyload.org/
16 PKG_MD5SUM:=28876150af22999b6f539c8579d3b415
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
23
24 define Package/pyload
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+python +pyopenssl +python-curl +python-crypto \
28         +python-expat +python-imaging-library +python-sqlite3 +js \
29         +tesseract +unrar
30   TITLE:=A fast, lightweight and full featured download manager
31   URL:=http://pyload.org
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 endef
39
40 define Package/pyload/install
41         $(INSTALL_DIR) $(1)/usr/share/python
42         $(CP) $(PKG_BUILD_DIR)/pyload $(1)/usr/share/python/
43         $(INSTALL_DIR) $(1)/etc/init.d
44         $(INSTALL_BIN) ./files/pyload.init $(1)/etc/init.d/pyload
45         $(INSTALL_DIR) $(1)/usr/bin
46         $(LN) ../share/python/pyload/pyLoadCore.py $(1)/usr/bin/pyload
47 endef
48
49 $(eval $(call BuildPackage,pyload))