Merge pull request #8518 from neheb/i
[feed/packages.git] / net / seafile-seahub / Makefile
1 #
2 # Copyright (C) 2007-2017 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:=seafile-seahub
11 PKG_VERSION:=6.3.4
12 PKG_RELEASE:=3
13 PKG_LICENSE:=Apache-2.0
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://codeload.github.com/haiwen/seahub/tar.gz/v$(PKG_VERSION)-server?
17 PKG_HASH:=53a9efdb6791fd3a2a191e89cb0f133632056046ec08adbb2ad72088e6161430
18 PKG_BUILD_DIR:=$(BUILD_DIR)/seahub-$(PKG_VERSION)-server
19
20 PKG_BUILD_DEPENDS:=python-pytz/host
21
22 include $(INCLUDE_DIR)/package.mk
23 include ../../lang/python/python-package.mk
24
25 define Package/seafile-seahub
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Seafile server - seahub component
29 URL:=https://seafile.com/
30 DEPENDS:=+python-simplejson +python +pillow +python-chardet +django +django-appconf \
31 +django-compressor +django-constance +django-formtools +django-jsonfield \
32 +django-picklefield +django-postoffice +django-restframework \
33 +django-simple-captcha +django-statici18n +django-webpack-loader \
34 +flup +gunicorn +openpyxl +python-dateutil +python-mysql \
35 +python-qrcode +python-requests +python-requests-oauthlib +python-pytz
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default,locale)
43 endef
44
45 define Package/seafile-seahub/description
46 The web end of seafile server.
47
48 NOTE: in order to have better performance, localization support is turned off by default.
49 Please set 'USE_I18N = True' in seahub_settings.py if you intend to use languages other than English.
50 endef
51
52 define Package/seafile-seahub/install
53 $(INSTALL_DIR) $(1)/usr/share/seafile/seafile-server/seahub
54 $(CP) $(PKG_BUILD_DIR)/{locale,media,fabfile,seahub,sql,tests,thirdpart,tools} $(1)/usr/share/seafile/seafile-server/seahub/
55 $(CP) $(PKG_BUILD_DIR)/*.{sh,template,py,txt} $(1)/usr/share/seafile/seafile-server/seahub/
56 $(CP) $(PKG_BUILD_DIR)/{CONTRIBUTORS,HACKING,README.markdown} $(1)/usr/share/seafile/seafile-server/seahub/
57 $(CP) $(PKG_BUILD_DIR)/pylintrc* $(1)/usr/share/seafile/seafile-server/seahub/
58 find $(1) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
59 $(SED) "s/\(SEAFILE_VERSION\s*=\s*\)'\([0-9]\.[0-9]\.[0-9]\)'/\1'$(PKG_VERSION)'/g" $(1)/usr/share/seafile/seafile-server/seahub/seahub/settings.py
60 endef
61
62 $(eval $(call BuildPackage,seafile-seahub))