Date: Saturday, May 19, 2018 @ 09:01:07 Author: felixonmars Revision: 324504
archrelease: copy trunk to community-staging-x86_64 Added: haskell-aeson-pretty/repos/community-staging-x86_64/PKGBUILD (from rev 324503, haskell-aeson-pretty/trunk/PKGBUILD) Deleted: haskell-aeson-pretty/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 82 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-19 09:00:47 UTC (rev 324503) +++ PKGBUILD 2018-05-19 09:01:07 UTC (rev 324504) @@ -1,41 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=aeson-pretty -pkgname=haskell-aeson-pretty -pkgver=0.8.7 -pkgrel=5 -pkgdesc="JSON pretty-printing library and command-line tool." -url="https://github.com/informatikr/aeson-pretty" -license=("custom:BSD3") -arch=('x86_64') -depends=('ghc-libs' "haskell-aeson" "haskell-attoparsec" "haskell-base-compat" "haskell-cmdargs" - "haskell-scientific" "haskell-unordered-containers" "haskell-vector") -makedepends=('ghc') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('b23cd85703ed21060dac3d608b894f0c331f6a008f0edeab319b4bdad8e07ce74f13dbe1865caa0ac091f85523fe334ae33bf735337411a9e70d1031dd5d33be') - -build() { - cd "${srcdir}/${_hkgname}-${pkgver}" - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ - -f-lib-only - 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}/${_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}" - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-aeson-pretty/repos/community-staging-x86_64/PKGBUILD (from rev 324503, haskell-aeson-pretty/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-19 09:01:07 UTC (rev 324504) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=aeson-pretty +pkgname=haskell-aeson-pretty +pkgver=0.8.7 +pkgrel=6 +pkgdesc="JSON pretty-printing library and command-line tool." +url="https://github.com/informatikr/aeson-pretty" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-aeson" "haskell-attoparsec" "haskell-base-compat" "haskell-cmdargs" + "haskell-scientific" "haskell-unordered-containers" "haskell-vector") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('b23cd85703ed21060dac3d608b894f0c331f6a008f0edeab319b4bdad8e07ce74f13dbe1865caa0ac091f85523fe334ae33bf735337411a9e70d1031dd5d33be') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-lib-only + 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}/${_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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}