[arch-commits] Commit in shellcheck/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jun 17 15:24:07 UTC 2017
Date: Saturday, June 17, 2017 @ 15:24:06
Author: felixonmars
Revision: 237946
upgpkg: shellcheck 0.4.6-4
rebuild with ghc,8.0.2
Modified:
shellcheck/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-17 15:23:16 UTC (rev 237945)
+++ PKGBUILD 2017-06-17 15:24:06 UTC (rev 237946)
@@ -5,26 +5,40 @@
_hkgname=ShellCheck
pkgname=shellcheck
pkgver=0.4.6
-pkgrel=3
+pkgrel=4
pkgdesc="Shell script analysis tool"
url="http://www.shellcheck.net"
license=("GPL")
arch=('i686' 'x86_64')
-depends=('libffi' 'gmp')
-makedepends=("ghc=8.0.1" "haskell-json" "haskell-mtl" "haskell-parsec" "haskell-quickcheck"
- "haskell-regex-tdfa")
+depends=("ghc" "haskell-json" "haskell-mtl" "haskell-parsec" "haskell-quickcheck"
+ "haskell-regex-tdfa")
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('b053a7f581d73f1e5be51046f2fd77f6e7452acecf841321ef363156a5f72d98c13a723885d1888ab366550625e05396ca207925539fec1d70a00212af920ca5')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
- runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
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"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
runhaskell Setup copy --destdir="${pkgdir}"
- # Remove library and doc (license only)
- rm -r "$pkgdir"/usr/{lib,share}
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
}
More information about the arch-commits
mailing list