[arch-commits] Commit in shellcheck/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Jan 22 06:56:36 UTC 2020


    Date: Wednesday, January 22, 2020 @ 06:56:36
  Author: felixonmars
Revision: 553365

upgpkg: shellcheck 0.7.0-89: rebuild with ghc 8.8.1, cabal-doctest 1.0.7, polyparse 1.13, primitive 0.7.0.0, regex-base 0.94.0.0, regex-pcre 0.95.0.0, regex-posix 0.96.0.0, regex-tdfa 1.3.1.0, easytest 0.3, unexceptionalio 0.5.0, gtk2hs-buildtools 0.13.8.0, ghc-typelits-natnormalise 0.7, resolv 0.1.1.3, ghc-typelits-knownnat 0.7.1, memory 0.15.0, RSA 2.4.1, foldl 1.4.6, lens 4.18, postgresql-binary 0.12.2, tls 1.5.0

Modified:
  shellcheck/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-22 06:56:23 UTC (rev 553364)
+++ PKGBUILD	2020-01-22 06:56:36 UTC (rev 553365)
@@ -4,7 +4,7 @@
 _hkgname=ShellCheck
 pkgname=shellcheck
 pkgver=0.7.0
-pkgrel=88
+pkgrel=89
 pkgdesc="Shell script analysis tool"
 url="https://www.shellcheck.net"
 license=("GPL")
@@ -11,9 +11,18 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-aeson' 'haskell-diff' 'haskell-quickcheck' 'haskell-regex-tdfa')
 makedepends=('ghc' 'pandoc')
-source=("$_hkgname-$pkgver.tar.gz::https://github.com/koalaman/shellcheck/archive/v$pkgver.tar.gz")
-sha512sums=('46ef486dff09bd51bdc5f053b1dda9e3f2943c66bbf6788824ddf8fcf3b69b7a3a9c00bf98bca0dee9d57ee6df833ca4088252dbf773815248be0fa667f35215')
+source=("$_hkgname-$pkgver.tar.gz::https://github.com/koalaman/shellcheck/archive/v$pkgver.tar.gz"
+        shellcheck-cabal3.patch::https://github.com/koalaman/shellcheck/commit/2c026f1ec7c205c731ff2a0ccd85365f37245758.patch)
+sha512sums=('46ef486dff09bd51bdc5f053b1dda9e3f2943c66bbf6788824ddf8fcf3b69b7a3a9c00bf98bca0dee9d57ee6df833ca4088252dbf773815248be0fa667f35215'
+            '88b7101a536598ecbf4d1c48cfd4eb10b1a6424a2344e4b1be6f6a814dcf1c3d00e78390070242369bc55ed9c20defd4cc7337854da71761fb08e13240619684')
 
+prepare() {
+    cd $pkgname-$pkgver
+    patch -p1 -i ../shellcheck-cabal3.patch
+
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
 build() {
     cd $pkgname-$pkgver
 
@@ -27,7 +36,7 @@
     sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 
-    pandoc -s -t man shellcheck.1.md -o shellcheck.1
+    ./manpage
 }
 
 check() {



More information about the arch-commits mailing list