From 8cee37703962a266f5829497339902ef020f19d9 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 29 Jun 2017 18:22:02 +0000 Subject: [PATCH] community/gitlab to 9.3.2-2 --- community/gitlab/PKGBUILD | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/community/gitlab/PKGBUILD b/community/gitlab/PKGBUILD index 2cf6658cf..80f6eafdf 100644 --- a/community/gitlab/PKGBUILD +++ b/community/gitlab/PKGBUILD @@ -12,13 +12,13 @@ pkgname=gitlab pkgver=9.3.2 -pkgrel=1 +pkgrel=2 pkgdesc="Project management and code hosting application" arch=('x86_64') url="https://gitlab.com/gitlab-org/gitlab-ce/tree/master#README" license=('MIT') depends=('ruby2.3' 'git' 'ruby2.3-bundler' 'gitlab-workhorse' 'openssh' 'redis' 'libxslt' 'icu' 'nodejs') -makedepends=('cmake' 'postgresql' 'mariadb' 'yarn') +makedepends=('cmake' 'postgresql' 'mariadb' 'yarn' 'go') optdepends=('postgresql: database backend' 'mysql: database backend' 'python2-docutils: reStructuredText markup language support' @@ -81,6 +81,7 @@ prepare() { -e "s|# path: /mnt/gitlab|path: ${_homedir}/shared|" \ -e "s|/home/git/gitlab-shell|/usr/share/webapps/gitlab-shell|" \ -e "s|tmp/backups|${_homedir}/backups|" \ + -e "s|/home/git/gitlab/tmp/sockets/private|${_homedir}/sockets|" \ config/gitlab.yml.example > config/gitlab.yml msg2 "Patching paths and timeout in unicorn.rb..." @@ -125,10 +126,14 @@ build() { cp config/resque.yml.example config/resque.yml sed -i 's/url.*/nope.sock/g' config/resque.yml + bundle-2.3 exec rake "gitlab:gitaly:install[/tmp/gitaly]" RAILS_ENV=production + rm -rf /tmp/gitaly/_build + bundle-2.3 exec rake assets:precompile RAILS_ENV=production --trace # yarn install --production --pure-lockfile # bundle-2.3 exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production + bundle-2.3 exec rake gettext:compile RAILS_ENV=production # After building assets, clean this up again rm config/database.yml config/database.yml.postgresql.orig @@ -137,11 +142,12 @@ build() { package() { cd "${srcdir}/${_srcdir}"* - depends+=('gitlab-shell>=4.0.0') + depends+=('gitlab-shell') install -d "${pkgdir}/usr/share/webapps" cp -r "${srcdir}/${_srcdir}"* "${pkgdir}${_datadir}" + cp -r /tmp/gitaly "${pkgdir}${_datadir}"/../gitaly # This was prepared in build() chown -R root:root "${pkgdir}${_datadir}" chmod 755 "${pkgdir}${_datadir}"