Date: Sunday, August 6, 2017 @ 22:40:47 Author: felixonmars Revision: 249169
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: hindent/repos/community-staging-i686/ hindent/repos/community-staging-i686/PKGBUILD (from rev 249168, hindent/trunk/PKGBUILD) hindent/repos/community-staging-x86_64/ hindent/repos/community-staging-x86_64/PKGBUILD (from rev 249168, hindent/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) Copied: hindent/repos/community-staging-i686/PKGBUILD (from rev 249168, hindent/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-08-06 22:40:47 UTC (rev 249169) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hindent +pkgver=5.2.3 +pkgrel=34 +pkgdesc="Extensible Haskell pretty printer" +url="https://github.com/commercialhaskell/hindent" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc' "haskell-descriptive" "haskell-exceptions" "haskell-monad-loops" "haskell-mtl" + "haskell-path" "haskell-path-io" "haskell-src-exts" "haskell-text" "haskell-unix-compat" + "haskell-utf8-string" "haskell-yaml") +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('478c207ffb408e31f15dbc5bf941acdc9116de1c775d393cb59514e4a28354865d808715005a7e6f076b86d4e5f5c0f389059c16d4761ffcec31953d2d88d969') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + --dynlibdir=/usr/lib --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}/${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/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 249168, hindent/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-08-06 22:40:47 UTC (rev 249169) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hindent +pkgver=5.2.3 +pkgrel=34 +pkgdesc="Extensible Haskell pretty printer" +url="https://github.com/commercialhaskell/hindent" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc' "haskell-descriptive" "haskell-exceptions" "haskell-monad-loops" "haskell-mtl" + "haskell-path" "haskell-path-io" "haskell-src-exts" "haskell-text" "haskell-unix-compat" + "haskell-utf8-string" "haskell-yaml") +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('478c207ffb408e31f15dbc5bf941acdc9116de1c775d393cb59514e4a28354865d808715005a7e6f076b86d4e5f5c0f389059c16d4761ffcec31953d2d88d969') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + --dynlibdir=/usr/lib --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}/${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/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +}