Root/offlineimap/Makefile

1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=offlineimap
9PKG_VERSION:=6.2.0.2
10
11PKG_SOURCE:=jgoerzen-$(PKG_NAME)-debian-$(PKG_VERSION)-0-g6b1cb5e.tar.gz
12PKG_SOURCE_URL:=http://download.github.com/
13PKG_BUILD_DIR:=$(BUILD_DIR)/jgoerzen-$(PKG_NAME)-0f1a667
14PKG_RELEASE:=1
15
16include $(INCLUDE_DIR)/package.mk
17
18define 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
25endef
26
27define Package/offlineimap/description
28  Read/sync your IMAP mailboxes [Python]
29endef
30
31define Build/Compile
32endef
33
34define 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/
47endef
48
49$(eval $(call BuildPackage,offlineimap))
50

Archive Download this file



interactive