diff options
author | Joffrey Darcq | 2018-02-26 12:08:36 +0100 |
---|---|---|
committer | Joffrey Darcq | 2018-02-26 12:08:36 +0100 |
commit | 4236e3b6bbc22714eb79373dc56d55f92ba769cf (patch) | |
tree | 4d602f9f4d1d6ff73d0bb0910a046db5210d4b43 | |
parent | 7e023c72e93b0fa8483c7520f9eb448e2da747c6 (diff) | |
download | aur-4236e3b6bbc22714eb79373dc56d55f92ba769cf.tar.gz |
Update depends
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 52 insertions, 26 deletions
@@ -1,7 +1,7 @@ pkgbase = seahub pkgdesc = The web frontend for seafile server pkgver = 6.2.5 - pkgrel = 5 + pkgrel = 6 url = https://github.com/haiwen/seahub changelog = ChangeLog arch = i686 @@ -9,17 +9,16 @@ pkgbase = seahub arch = armv7h arch = armv6h arch = aarch64 - license = Apache - license = PSF - license = MIT - license = BSD - license = GPL + license = custom:Apache PSF MIT BSD GPL makedepends = python2-virtualenv + makedepends = git depends = seafile-server=6.2.5 depends = libmemcached - depends = libmariadbclient - optdepends = memcached - optdepends = mariadb + depends = freetype2 + depends = openjpeg2 + optdepends = mariadb: For use MySQL databases + optdepends = memcached: For better caching performance + optdepends = ffmpeg: For video thumbnails options = !strip source = seahub-6.2.5-server.tar.gz::https://github.com/haiwen/seahub/archive/v6.2.5-server.tar.gz sha256sums = 80a7a1cadde8e8e570bdc454bc4a4902ebcace97b347f9eef701b5ab02742039 diff --git a/ChangeLog b/ChangeLog index 1f9880390077..95990e3080d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2018-02-26 Joffrey <j-off@live.fr> + * Version: 6.2.5-6 + + * PKGBUILD: Update depends and optdepends + Compile all seahub locales in build() + Prepare and install licence.txt + Remove tests and scripts useless in sources + Fix six module missing with cmd "seafile-admin setup" + 2018-02-22 Joffrey <j-off@live.fr> * Version: 6.2.5-5 @@ -5,22 +5,27 @@ pkgname='seahub' pkgver=6.2.5 -pkgrel=5 +pkgrel=6 pkgdesc='The web frontend for seafile server' arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64') url="https://github.com/haiwen/${pkgname}" -license=('Apache' 'PSF' 'MIT' 'BSD' 'GPL') -depends=("seafile-server=${pkgver}" 'libmemcached' 'libmariadbclient') -optdepends=('memcached' 'mariadb') -makedepends=('python2-virtualenv') +license=('custom:Apache PSF MIT BSD GPL') +depends=("seafile-server=${pkgver}" 'libmemcached' 'freetype2' 'openjpeg2') +optdepends=('mariadb: For use MySQL databases' + 'memcached: For better caching performance' + 'ffmpeg: For video thumbnails') +makedepends=('python2-virtualenv' 'git') changelog="ChangeLog" source=("${pkgname}-${pkgver}-server.tar.gz::${url}/archive/v${pkgver}-server.tar.gz") sha256sums=('80a7a1cadde8e8e570bdc454bc4a4902ebcace97b347f9eef701b5ab02742039') options=("!strip") -prepare () { +prepare() { cd "${srcdir}/${pkgname}-${pkgver}-server" + # Remove useless files and directories + rm -rf './'{*test*,*sh*,CONTRIBUTORS,HACKING,Makefile,README.*,pylintrc*} + # Use python lib seahub interpreter for all scripts grep -s -l -r '#!/usr/bin/env python' "./" \ | xargs sed -i -e '1 s|#!/usr/bin/env python|#!/usr/lib/seahub/bin/python2|' @@ -32,6 +37,19 @@ prepare () { echo 'pylibmc' # Memcached support echo 'django-pylibmc' # Memcached support } >> "./requirements.txt" + + # Prepare License + cat './LICENSE-'* >> './LICENSE.txt' && rm -f './LICENSE-'* +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}-server/" + + printf 'Compile seahub locales...' + for locale in ./locale/*/LC_MESSAGES/*.po; do + msgfmt -o "${locale%.po}.mo" "${locale}" + done + printf 'done.\n' } package() { @@ -41,32 +59,32 @@ package() { install -dm755 "${pkgdir}/usr/share/seafile-server/seahub" cp -r -p "./"* "${pkgdir}/usr/share/seafile-server/seahub/" + install -Dm644 './LICENSE.txt' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + # Create VirtualEnv venv="${pkgdir}/usr/lib/seahub" virtualenv2 --no-wheel --system-site-packages "${venv}" source "${venv}/bin/activate" # Activates the VirtualEnv - # Fix subprocess exception if gunicorn is already installed - printf 'Installing gunicorn...' - pip2 install --isolated --no-compile --upgrade --force-reinstall gunicorn > /dev/null && \ + # Fix modules missing + printf 'Installing gunicorn, six...' + pip2 install --isolated --no-compile --upgrade --force-reinstall 'gunicorn' 'six' > /dev/null printf 'done.\n' # Install requirements pip2 install --isolated --no-compile -r "./requirements.txt" - + deactivate # Deactivate VirtualEnv - # Use relative path - virtualenv2 --relocatable "${venv}" + virtualenv2 --relocatable "${venv}" # Use relative path - # Recompile all .pyc files in venv. Not stricly required - # But useful for printing valid source file paths in case of python exceptions. - # Requires minimum 1GB RAM, comment next two commands in case of < 1GB RAM + # Recompile .py for printing valid file paths in case of python exceptions. + # Requires minimum 1GB RAM, comment next commands in case of < 1GB RAM printf "Compile all .py in %s/..." "${venv}/bin" python2 -m compileall \ -q -f -d "${venv#$pkgdir}/bin" \ - -- "${venv}/bin" && \ + -- "${venv}/bin" printf 'done.\n' # _gaiohttp.py excluded due to https://github.com/benoitc/gunicorn/issues/810 @@ -74,6 +92,6 @@ package() { python2 -m compileall \ -q -f -d "${venv#$pkgdir}/lib/python2.7" \ -x '.*/gunicorn/workers/_gaiohttp.py' \ - -- "${venv}/lib/python2.7" && \ + -- "${venv}/lib/python2.7" printf 'done.\n' } |