source: packages/net/pyload/Makefile @ 29400

Last change on this file since 29400 was 29400, checked in by nico, 5 years ago

packages: add pyload (a fast, lightweight and full featured download manager)

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pyload
11PKG_VERSION:=0.4.8
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-src-v$(PKG_VERSION).zip
15PKG_SOURCE_URL:=http://download.pyload.org/
16PKG_MD5SUM:=5bcf8411ef9e48ef6e9ade55bc697900
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/
19
20include $(INCLUDE_DIR)/package.mk
21
22PKG_UNPACK=unzip -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE)
23
24define Package/pyload
25  SECTION:=net
26  CATEGORY:=Network
27  DEPENDS:=+python +pyopenssl +python-curl +python-crypto +python-django \
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
32endef
33
34define Build/Configure
35endef
36
37define Build/Compile
38endef
39
40define 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
47endef
48
49$(eval $(call BuildPackage,pyload))
Note: See TracBrowser for help on using the repository browser.