Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
markdownlint-cli2


Commits:
2686a3d3 by Daniel M. Capella at 2023-11-20T03:50:25-05:00
upgpkg: 0.11.0-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,14 @@
+pkgbase = markdownlint-cli2
+       pkgdesc = Fast, flexible, configuration-based command-line interface 
for linting Markdown/CommonMark files with the markdownlint library
+       pkgver = 0.11.0
+       pkgrel = 1
+       url = https://github.com/DavidAnson/markdownlint-cli2
+       arch = any
+       license = MIT
+       makedepends = git
+       makedepends = npm
+       depends = nodejs
+       source = 
git+https://github.com/DavidAnson/markdownlint-cli2.git#tag=v0.11.0
+       b2sums = SKIP
+
+pkgname = markdownlint-cli2


=====================================
PKGBUILD
=====================================
@@ -2,8 +2,8 @@
 # Contributor: Brody <archfan at brodix dot de>
 
 pkgname=markdownlint-cli2
-pkgver=0.10.0
-pkgrel=2
+pkgver=0.11.0
+pkgrel=1
 pkgdesc='Fast, flexible, configuration-based command-line interface for 
linting Markdown/CommonMark files with the markdownlint library'
 arch=('any')
 url=https://github.com/DavidAnson/markdownlint-cli2
@@ -16,26 +16,25 @@ b2sums=('SKIP')
 prepare() {
   cd $pkgname
   npm install
-
-  # https://github.com/DavidAnson/markdownlint-cli2/issues/215
-  git cherry-pick --no-commit 15d39ccc30f41e1202b85fdd4618afb8bb91b213
 }
 
-check() {
-  cd $pkgname
-  npm test
-}
+# Test failures due to deprecation warnings
+# https://github.com/markdown-it/markdown-it/issues/967
+#check() {
+#  cd $pkgname
+#  npm test
+#}
 
 package() {
-  local _npmdir=/usr/lib/node_modules/$pkgname
-  install -d "$pkgdir"/{usr/bin,$_npmdir}
-  ln -s $_npmdir/$pkgname.js "$pkgdir"/usr/bin/$pkgname
+  local mod_dir=/usr/lib/node_modules/$pkgname
+  install -d "$pkgdir"/{usr/bin,$mod_dir}
+  ln -s $mod_dir/$pkgname.js "$pkgdir"/usr/bin/$pkgname
 
   cd $pkgname
   npm prune --production
 
   cp -r {$pkgname,append-to-array,merge-options,resolve-and-require}.js \
-    node_modules package.json "$pkgdir"/$_npmdir
+    node_modules package.json "$pkgdir"/$mod_dir
   install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md
   install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/markdownlint-cli2/-/commit/2686a3d3ea1cc47eb062819e9a144b9042834a85

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/markdownlint-cli2/-/commit/2686a3d3ea1cc47eb062819e9a144b9042834a85
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to