Date: Monday, February 24, 2020 @ 20:35:11 Author: anatolik Revision: 580830
upgpkg: gitlab 12.8.1-1 gitlab makes releases often and downloading huge source archives is a slow process. Use git repo for sources and make incremental updates faster. Modified: gitlab/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-02-24 20:34:05 UTC (rev 580829) +++ PKGBUILD 2020-02-24 20:35:11 UTC (rev 580830) @@ -10,7 +10,7 @@ # commit log for an old fix on how to tell it to use older versions of Ruby. I'm afraid we'll # need this again at some point in the future. pkgname=gitlab -pkgver=12.8.0 +pkgver=12.8.1 pkgrel=1 pkgdesc="Project management and code hosting application" arch=('x86_64') @@ -27,7 +27,7 @@ "etc/webapps/${pkgname}/resque.yml" "etc/webapps/${pkgname}/unicorn.rb" "etc/logrotate.d/${pkgname}") -source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-foss/repository/archive?sha=v${pkgver}" +source=(git+https://gitlab.com/gitlab-org/gitlab-foss.git#tag=v$pkgver build_fix.patch gitlab-unicorn.service gitlab-sidekiq.service @@ -39,7 +39,7 @@ gitlab.logrotate ruby27-pop-extra-arg.patch) install='gitlab.install' -sha512sums=('7172594acc58c2db1bb9bebd2d982dad943796645bacbce7a959566be2b5344a97aca35c6f1e4fb9acae8ce4e2324e79f82ccd41e606da498bbc85056a1108bf' +sha512sums=('SKIP' 'baeb28cc87be9f5e36f9bb3c98f8c81caf1f0eadab1726bcd80d89f94dfb9d00c2e086966f4ce80ac91b27dbd6b550868167e29f6b04bee6a22ead41e30c604b' '1ad15b48890ad48e97a6fcea56132582f2b22aa27f4a1a1f4590f3ea72de4726e13ef6f3db2bc0984da1ef140bde092e74e0c9f8f1778f207f3fac4a31a77e4b' '8ca36771f7568b190823ec47afeaf6ff75f61c5b6f31ce5d837a6dcd84a5b3da23fb07a1eceeda0752b2e61c4a8f4d17bf368fa2913e1487567944a8d29eeb58' @@ -56,13 +56,12 @@ _etcdir="/etc/webapps/${pkgname}" _homedir="/var/lib/${pkgname}" _logdir="/var/log/${pkgname}" -_srcdir="gitlab-foss-" prepare() { # Get first 7 characters from sha1 which has 40 characters in total - local revision=$(ls -d ${_srcdir}* | rev | cut -c 34-40 | rev) + local revision=$(ls -d gitlab-foss | rev | cut -c 34-40 | rev) - cd "${_srcdir}"* + cd gitlab-foss patch -p1 < ../build_fix.patch @@ -115,7 +114,7 @@ } build() { - cd "${srcdir}/${_srcdir}"* + cd gitlab-foss echo "Fetching bundled gems..." # Gems will be installed into vendor/bundle @@ -145,12 +144,12 @@ } package() { - cd "${srcdir}/${_srcdir}"* + cd gitlab-foss depends+=('gitlab-shell') install -d "${pkgdir}/usr/share/webapps" - cp -r "${srcdir}/${_srcdir}"* "${pkgdir}${_datadir}" + cp -r "${srcdir}"/gitlab-foss "${pkgdir}${_datadir}" # Remove unneeded directories: node_modules is only needed during build rm -r "${pkgdir}${_datadir}/node_modules" # https://gitlab.com/gitlab-org/omnibus-gitlab/blob/194cf8f12e51c26980c09de6388bbd08409e1209/config/software/gitlab-rails.rb#L179 @@ -223,5 +222,3 @@ install -Dm644 "${srcdir}/gitlab.tmpfiles.d" "${pkgdir}/usr/lib/tmpfiles.d/gitlab.conf" install -Dm644 "${srcdir}/gitlab.logrotate" "${pkgdir}/etc/logrotate.d/gitlab" } - -# vim:set ts=2 sw=2 et: