OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # |
2 | # This is free software, licensed under the GNU General Public License v2. |
3 | # See /LICENSE for more information. |
4 | # |
5 | |
6 | include $(TOPDIR)/rules.mk |
7 | |
8 | PKG_NAME:=offlineimap |
9 | PKG_VERSION:=6.2.0.2 |
10 | |
11 | PKG_SOURCE:=jgoerzen-$(PKG_NAME)-debian-$(PKG_VERSION)-0-g6b1cb5e.tar.gz |
12 | PKG_SOURCE_URL:=http://download.github.com/ |
13 | PKG_BUILD_DIR:=$(BUILD_DIR)/jgoerzen-$(PKG_NAME)-0f1a667 |
14 | PKG_RELEASE:=1 |
15 | |
16 | include $(INCLUDE_DIR)/package.mk |
17 | |
18 | define Package/offlineimap |
19 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
20 | SECTION:=utils |
21 | CATEGORY:=Utilities |
22 | TITLE:=offlineimap |
23 | URL:=http://wiki.github.com/jgoerzen/offlineimap/ |
24 | DEPENDS:=python @BROKEN |
25 | endef |
26 | |
27 | define Package/offlineimap/description |
28 | Read/sync your IMAP mailboxes [Python] |
29 | endef |
30 | |
31 | define Build/Compile |
32 | endef |
33 | |
34 | define Package/offlineimap/install |
35 | $(INSTALL_DIR) $(1)/usr/bin/ |
36 | $(INSTALL_DIR) $(1)/usr/share/offlineimap/offlineimap |
37 | |
38 | echo -e "\0043\0041/bin/sh\n(cd /usr/share/offlineimap; ./offlineimap.py)" > $(1)/usr/bin/offlineimap |
39 | chmod +x $(1)/usr/bin/offlineimap |
40 | |
41 | $(INSTALL_BIN) \ |
42 | $(PKG_BUILD_DIR)/bin/offlineimap \ |
43 | $(1)/usr/share/offlineimap/offlineimap.py |
44 | $(CP) \ |
45 | $(PKG_BUILD_DIR)/offlineimap/* \ |
46 | $(1)/usr/share/offlineimap/offlineimap/ |
47 | endef |
48 | |
49 | $(eval $(call BuildPackage,offlineimap)) |
50 |