# Contributor: # Maintainer: Natanael Copa pkgname=seahub pkgver=4.0.0 pkgrel=0 pkgdesc="web frontend for Seafile" url="https://github.com/haiwen/seahub/" arch="noarch" license="Apache" depends="bash py-dateutil py-mako py-simplejson py-pillow py-pip py-virtualenv py-six python py-django1.5 py-gunicorn py-chardet py-django-djblets py-ccnet py-libsearpc py-django-simple-captcha py-django-registration py-flup py-seafile seafile-server" source="$pkgname-$pkgver.tar.gz::https://github.com/haiwen/seahub/archive/v${pkgver}-server.tar.gz seahub.confd seahub.initd" install="seahub.post-install" _builddir="${srcdir}/${pkgname}-${pkgver}-server" prepare() { local pf cd "${_builddir}" for pf in $source; do case $pf in *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; esac done } build() { echo } package() { cd "${_builddir}" mkdir -m 755 -p "${pkgdir}"/usr/share/seahub || return 1 cp -ar "${_builddir}"/* "${pkgdir}"/usr/share/seahub install -D -m0644 "${srcdir}"/seahub.confd "${pkgdir}"/etc/conf.d/seahub \ || return 1 install -D -m0755 "${srcdir}"/seahub.initd "${pkgdir}"/etc/init.d/seahub \ || return 1 } md5sums="dcc6aa65f702b0164fc0a474e131f273 seahub-4.0.0.tar.gz e1ed5467cd78159fb7e73e2d2d925a8e seahub.confd 4d0df2a2cb7e5e6a0db0b893257aaaf5 seahub.initd" sha256sums="c4653c5a369736cf0bb9d998909a14f30a09336edc89b860d972e493f5c34f8f seahub-4.0.0.tar.gz 8b0e8bf45d278bbf32f4dca4a402f2584a87e46adee2e24732804acebd1c2cff seahub.confd 49176ee3911a39ce94388fb67600da98cfe52e2e7e026d3bbfa3b6a8ead759b1 seahub.initd" sha512sums="72ac322ff3a0dc898d69bb1266c8bf6e0f0a1e0463e58b8647a51274bdafa3df7ab0ccf0cb554ce2e72e34d3a1ac65ae9f3965696bbaf9eb7bf33feae302cc3b seahub-4.0.0.tar.gz d55dbd3e59ae48a930cbcb42ec840689a17f6cb1cb16f6d0d155e646b24accb8a5e5c1f59f549f66941bb21475b2c6ce55a3bb014d016bfeddea13602984c2a6 seahub.confd 8329a3b730e4ce5276662fa6a74c3d8889d96f289f1706cefa340c5bd7d0590f022c7647ab957866642f30618bc82a62468c02999bab6bbe04e03e0e07668b62 seahub.initd"