[arch-commits] Commit in shellcheck/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Dec 9 21:28:24 UTC 2017
Date: Saturday, December 9, 2017 @ 21:28:23
Author: felixonmars
Revision: 273445
upgpkg: shellcheck 0.4.7-1
Modified:
shellcheck/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-09 21:26:59 UTC (rev 273444)
+++ PKGBUILD 2017-12-09 21:28:23 UTC (rev 273445)
@@ -4,23 +4,23 @@
_hkgname=ShellCheck
pkgname=shellcheck
-pkgver=0.4.6
-pkgrel=10
+pkgver=0.4.7
+pkgrel=1
pkgdesc="Shell script analysis tool"
url="http://www.shellcheck.net"
license=("GPL")
arch=('x86_64')
-depends=('ghc-libs' "haskell-json" "haskell-mtl" "haskell-parsec" "haskell-quickcheck"
- "haskell-regex-tdfa")
+depends=('ghc-libs' 'haskell-json' 'haskell-mtl' 'haskell-parsec' 'haskell-quickcheck'
+ 'haskell-regex-tdfa')
makedepends=('ghc')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('b053a7f581d73f1e5be51046f2fd77f6e7452acecf841321ef363156a5f72d98c13a723885d1888ab366550625e05396ca207925539fec1d70a00212af920ca5')
+sha512sums=('bb9c79911701b3857d29fd63588115888f4d2b1d224066bb944ca00d29d973195ad1f4b1df8e2746fd0666f7438f46abc384f7f915c152f46fcd332163736792')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
-
+
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -29,9 +29,14 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd "${srcdir}/${_hkgname}-${pkgver}"
-
+
install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
runhaskell Setup copy --destdir="${pkgdir}"
More information about the arch-commits
mailing list