Date: Tuesday, April 25, 2023 @ 08:00:28
  Author: dvzrv
Revision: 1448620

upgpkg: vim-editorconfig 1.1.1-2: Rebuild to re-sign package.

Switch to git sources for easier handling of test artifacts.
Disable tests as they hang indefinitely: 
https://github.com/editorconfig/editorconfig-vim/issues/150

Modified:
  vim-editorconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   94 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 51 insertions(+), 43 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-25 07:37:24 UTC (rev 1448619)
+++ PKGBUILD    2023-04-25 08:00:28 UTC (rev 1448620)
@@ -1,58 +1,66 @@
 # Maintainer: David Runge <dv...@archlinux.org>
 
 _name=editorconfig
-_tests_commit=cb7ae15d16ab3d72a1139f7a629b11cfe16d972f
 pkgname=vim-editorconfig
+_commit=0a3c1d8082e38a5ebadcba7bb3a608d88a9ff044  # refs/tags/v1.1.1
 pkgver=1.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="EditorConfig plugin for Vim"
-arch=('any')
+arch=(any)
 url="https://github.com/editorconfig/editorconfig-vim";
-license=('BSD' 'CCPL' 'PSF')
-groups=('vim-plugins')
-depends=('editorconfig-core-c')
-checkdepends=('ruby-rake' 'ruby-rspec' 'ruby-vimrunner' 'xorg-server-xvfb')
-provides=('editorconfig-vim')
-conflicts=('editorconfig-vim')
-replaces=('editorconfig-vim')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/${_name}/${_name}-vim/archive/v${pkgver}.tar.gz";
-        
"${pkgname}-tests-${_tests_commit}.tar.gz::https://github.com/editorconfig/editorconfig-plugin-tests/archive/${_tests_commit}.tar.gz";
-        "${pkgname}-1.1.1-tests.patch")
-sha512sums=('7b94db4b2f641ecd2d2623bf55bf9b457c007b2b5c8553cba5b7a75bc34823d6995d3c9ed13febe0f59de6f87c52eb0367591213c43c6fcd7c331c529126f4d6'
-            
'0f003fbe538c03bc18fcda9c2f6f20d4f6c451b22f7957806487792bffe529ab5dd608a2b602f895f61b3c442237b2640918c7052b49f19b68297964d3db227c'
-            
'7147a4d0e1ad5604e045228229919559426aede27086e12bc9415c048af47038fcaa9380a1de6185dcd650417ebe088bb92140c4bb3185cc1aed32481deac1de')
+license=(
+  BSD
+  CCPL
+  PSF
+)
+groups=(vim-plugins)
+makedepends=(
+  git
+)
+checkdepends=(
+  editorconfig-core-c
+  ruby-rake
+  ruby-rspec
+  ruby-vimrunner
+  xorg-server-xvfb
+)
+source=(
+  "git+$url.git#tag=$_commit"
+  git+https://github.com/editorconfig/editorconfig-plugin-tests.git
+  git+https://github.com/editorconfig/editorconfig-core-test.git
+)
+sha512sums=('SKIP'
+            'SKIP'
+            'SKIP')
+b2sums=('SKIP'
+        'SKIP'
+        'SKIP')
 
 prepare() {
-  mv -v "${_name}-vim-${pkgver}" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  mv -v "../${_name}-plugin-tests-${_tests_commit}/"* 
tests/plugin/spec/plugin_tests
-  # some test files are seemingly missing:
-  # https://github.com/editorconfig/editorconfig-vim/issues/150
-  patch -Np1 -i "../${pkgname}-1.1.1-tests.patch"
-}
+  cd $_name-vim
 
-check() {
-  cd "$pkgname-$pkgver"
-  export EDITORCONFIG_VIM_EXTERNAL_CORE=/usr/bin/editorconfig
-  export DISPLAY=:99.0
-  xvfb-run rspec tests/plugin/spec/editorconfig_spec.rb
+  git submodule init
+  git config submodule.tests/plugin/spec/plugin_tests.url 
"$srcdir/editorconfig-plugin-tests"
+  git config submodule.tests/core/tests.url "$srcdir/editorconfig-core-test"
+  git -c protocol.file.allow=always submodule update
 }
 
+# # tests hang forever: 
https://github.com/editorconfig/editorconfig-vim/issues/150
+# check() {
+#   cd $_name-vim
+#   export EDITORCONFIG_VIM_EXTERNAL_CORE=/usr/bin/editorconfig
+#   xvfb-run rspec tests/plugin/spec/editorconfig_spec.rb
+# }
+
 package() {
   # gvim, pulled in by ruby-vimrunner conflicts with vim
-  depends+=('vim')
-  cd "$pkgname-$pkgver"
-  # plugin files
-  install -vDm 644 "autoload/${_name}"{,_core}.vim \
-    -t "${pkgdir}/usr/share/vim/vimfiles/autoload"
-  install -vDm 644 "autoload/${_name}_core/"*.vim \
-    -t "${pkgdir}/usr/share/vim/vimfiles/autoload/${_name}_core"
-  install -vDm 644 "doc/${_name}.txt" -t "${pkgdir}/usr/share/vim/vimfiles/doc"
-  install -vDm 644 "plugin/${_name}.vim" \
-    -t "${pkgdir}/usr/share/vim/vimfiles/plugin"
-  # docs
-  install -vDm 644 {CONTRIBUTORS,README.md} \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-  # license
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  depends+=(vim)
+
+  cd $_name-vim
+  install -vDm 644 autoload/${_name}{,_core}.vim -t 
"$pkgdir/usr/share/vim/vimfiles/autoload/"
+  install -vDm 644 autoload/${_name}_core/*.vim -t 
"$pkgdir/usr/share/vim/vimfiles/autoload/${_name}_core"
+  install -vDm 644 doc/$_name.txt -t "$pkgdir/usr/share/vim/vimfiles/doc"
+  install -vDm 644 plugin/$_name.vim -t "$pkgdir/usr/share/vim/vimfiles/plugin"
+  install -vDm 644 {CONTRIBUTORS,README.md} -t 
"$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
 }

Reply via email to