Date: Friday, June 16, 2017 @ 16:36:38 Author: felixonmars Revision: 237743
upgpkg: hlint 2.0.8-9 rebuild with ghc,8.0.2 Modified: hlint/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-06-16 16:32:07 UTC (rev 237742) +++ PKGBUILD 2017-06-16 16:36:38 UTC (rev 237743) @@ -2,24 +2,25 @@ # Maintainer: Felix Yan <[email protected]> # Contributor: Arch Haskell Team <[email protected]> -pkgbase=hlint -pkgname=(hlint haskell-hlint) +pkgname=hlint pkgver=2.0.8 -pkgrel=8 +pkgrel=9 pkgdesc="Source code suggestions" url="http://community.haskell.org/~ndm/hlint/" license=("custom:BSD3") arch=('i686' 'x86_64') -makedepends=("ghc=8.0.1" "haskell-ansi-terminal" "haskell-cmdargs" "haskell-cpphs" "haskell-extra" - "haskell-src-exts" "haskell-hscolour" "haskell-uniplate" "haskell-refact" - "haskell-text" "haskell-unordered-containers" "haskell-vector" "haskell-yaml") -source=("https://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz") +depends=("ghc" "haskell-ansi-terminal" "haskell-cmdargs" "haskell-cpphs" "haskell-extra" + "haskell-src-exts" "haskell-hscolour" "haskell-uniplate" "haskell-refact" "haskell-text" + "haskell-unordered-containers" "haskell-vector" "haskell-yaml") +conflicts=('haskell-hlint') +replaces=('haskell-hlint') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha512sums=('c8d1db8b11afe778fb8ae193f595e784931ee40ba348e9b892f162ef6376dc43e6794e6a7ed33294b1db4653de6d0fb4e99f6368b3c8cfea1bc829503a685b45') build() { - cd "${srcdir}/${pkgbase}-${pkgver}" - runhaskell Setup configure -O --enable-library-profiling --enable-shared \ - --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \ + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ --libsubdir=\$compiler/site-local/\$pkgid \ -fgpl -fthreaded runhaskell Setup build @@ -30,25 +31,16 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } -package_hlint() { - depends=('gmp' 'libffi') - - cd "${srcdir}/${pkgbase}-${pkgver}" - runhaskell Setup copy --destdir="${pkgdir}" - rm -r "$pkgdir"/usr/{lib,share/doc} - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} - -package_haskell-hlint() { - pkgdesc="Source code suggestions (docs and libraries)" - depends=("${makedepends[@]}" 'hlint') - - cd "${srcdir}/${pkgbase}-${pkgver}" +package() { + cd "${srcdir}/${pkgname}-${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/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}" + ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}" runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3" - rm -r "$pkgdir"/usr/{bin,share/${pkgbase}} + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete }
