Date: Monday, September 25, 2017 @ 01:49:54 Author: felixonmars Revision: 260484
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: hlint/repos/community-staging-i686/ hlint/repos/community-staging-i686/PKGBUILD (from rev 260483, hlint/trunk/PKGBUILD) hlint/repos/community-staging-x86_64/ hlint/repos/community-staging-x86_64/PKGBUILD (from rev 260483, hlint/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) Copied: hlint/repos/community-staging-i686/PKGBUILD (from rev 260483, hlint/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-09-25 01:49:54 UTC (rev 260484) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hlint +pkgver=2.0.9 +pkgrel=21 +pkgdesc="Source code suggestions" +url="http://community.haskell.org/~ndm/hlint/" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc-libs' "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') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('f2082eec31b73c2c1b1f7ce246b15178d00c8e6f9840619fc11c545cde4120713c274236c85993e217c17886cd824276cf2738c32aeaf67af9c8b4c147c09cf7') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -fgpl -fthreaded + runhaskell Setup build + 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}/${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" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3" +} Copied: hlint/repos/community-staging-x86_64/PKGBUILD (from rev 260483, hlint/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-09-25 01:49:54 UTC (rev 260484) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hlint +pkgver=2.0.9 +pkgrel=21 +pkgdesc="Source code suggestions" +url="http://community.haskell.org/~ndm/hlint/" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc-libs' "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') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('f2082eec31b73c2c1b1f7ce246b15178d00c8e6f9840619fc11c545cde4120713c274236c85993e217c17886cd824276cf2738c32aeaf67af9c8b4c147c09cf7') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -fgpl -fthreaded + runhaskell Setup build + 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}/${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" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3" +}