commit fdffe0bce6edfb19605c18551751686011339880 Author: Aaron Lindsay Date: Fri Feb 1 07:02:59 2013 -0500 Initial commit: 1.4.1-2 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2ac11ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Aaron Lindsay + +# Name of the Software your PKGBUILD will install - should be unique. See PKGBUILD#pkgname +pkgname=seafile + +# The version number for the software +pkgver=1.4.1 + +#The release number for the arch package, as fixes are added to the PKGBUILD, the release number will increase +pkgrel=2 + +# The description of the package, should be about 80 characters long (one line) +pkgdesc="Seafile is an open-source Dropbox replacement." + +# The type of processor this software can build and work on. See PKGBUILD#arch +arch=('i686' 'x86_64') + +# The official website for the software your PKGBUILD will install +url="http://seafile.com" + +# The License that the software is released under. See PKGBUILD#license +license=('GPLv3') + +# Packages that your software needs to run. If the dependancy requires a minimum version number use the >= operator +depends=('glib2>=2.28' 'libevent>=2.0' 'curl' 'util-linux' 'intltool>=0.40' 'sqlite>=3.7' 'libmysqlclient>=5.5' 'gtk2>=2.24' 'python2-mako' 'python2-webpy' 'python2-simplejson' 'python2-imaging' 'python2-pip' 'python2-virtualenv' 'libnotify' 'gunicorn' 'python2-djblets' 'ccnet' 'libsearpc' 'libevhtp') + +# Packages that must be installed to build the software, but at not necessary to run it +makedepends=() + +# Optional packages that extend the software's functionality +optdepends=() + +# List of Package names that this PKGBUILD provides. Put modified packages that will be installed here. +provides=() + +conflicts=('django' 'django-rest-framework') + +# Change the default behavior of makepkg see PKGBUILD#options +options= + +install=seafile.install + +source=("http://seafile.com.cn/downloads/seafile-latest.tar.gz" + "seafile-admin.patch") +sha256sums=('ea4274fd4d67e775ea217e5a63581e9bab1d51b6f172c2178fdbd4f5eb6279e1' + '0d9578b85c00f3087a19f227b29c3fda13e83d093d024c68c1df5575d30d56dc') + +prepare () { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i $srcdir/seafile-admin.patch +} + +build () { + prepare + cd "$srcdir/$pkgname-$pkgver" + ./configure --enable-server --enable-httpserver --prefix=/usr PYTHON=/usr/bin/python2 + make +} + +package () { + #install library and header files + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/seafile-admin.patch b/seafile-admin.patch new file mode 100644 index 0000000..164824e --- /dev/null +++ b/seafile-admin.patch @@ -0,0 +1,25 @@ +--- a/tools/seafile-admin 2013-01-16 22:08:41.000000000 -0500 ++++ b/tools/seafile-admin 2013-01-25 07:25:43.957175586 -0500 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/lib/seafile/seafileenv/bin/python2 + # coding: UTF-8 + + '''This is the helper script to setup/manage your seafile server +@@ -642,7 +642,8 @@ + + def start_seahub_gunicorn(): + argv = [ +- 'gunicorn_django', ++ PYTHON, ++ '/usr/bin/gunicorn_django', + '-c', conf[CONF_SEAHUB_CONF], + '-b', '0.0.0.0:%s' % conf[CONF_SEAHUB_PORT], + ] +@@ -871,4 +872,4 @@ + args.func(args) + + if __name__ == '__main__': +- main() +\ No newline at end of file ++ main()