2 # Copyright (C) 2011-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-src-v$(PKG_VERSION).zip
15 PKG_SOURCE_URL:=http://download.pyload.org/
16 PKG_MD5SUM:=28876150af22999b6f539c8579d3b415
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/
20 include $(INCLUDE_DIR)/package.mk
22 PKG_UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
27 DEPENDS:=+python +pyopenssl +python-curl +python-crypto \
28 +python-expat +python-imaging-library +python-sqlite3 +js \
30 TITLE:=A fast, lightweight and full featured download manager
31 URL:=http://pyload.org
34 define Build/Configure
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
49 $(eval $(call BuildPackage,pyload))