Date: Tuesday, June 27, 2017 @ 13:39:10 Author: felixonmars Revision: 241182
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-brick/repos/community-staging-i686/ haskell-brick/repos/community-staging-i686/PKGBUILD (from rev 241181, haskell-brick/trunk/PKGBUILD) haskell-brick/repos/community-staging-x86_64/ haskell-brick/repos/community-staging-x86_64/PKGBUILD (from rev 241181, haskell-brick/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) Copied: haskell-brick/repos/community-staging-i686/PKGBUILD (from rev 241181, haskell-brick/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-06-27 13:39:10 UTC (rev 241182) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=brick +pkgname=haskell-brick +pkgver=0.19 +pkgrel=1 +pkgdesc="A declarative terminal user interface library" +url="https://github.com/jtdaugherty/brick" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc' "haskell-vty" "haskell-data-clist" "haskell-dlist" "haskell-microlens" + "haskell-microlens-th" "haskell-microlens-mtl" "haskell-vector" "haskell-contravariant" + "haskell-stm" "haskell-text" "haskell-text-zipper") +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f4bf04c9c2a8a19849bd089d86942312b055e6e44addd3ba5f0caccb7ba01db987f341c2175ccbe47e1cb48b5c5b5866f082997de6647fbca6ad369631256d9b') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-demos + 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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} Copied: haskell-brick/repos/community-staging-x86_64/PKGBUILD (from rev 241181, haskell-brick/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-06-27 13:39:10 UTC (rev 241182) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=brick +pkgname=haskell-brick +pkgver=0.19 +pkgrel=1 +pkgdesc="A declarative terminal user interface library" +url="https://github.com/jtdaugherty/brick" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc' "haskell-vty" "haskell-data-clist" "haskell-dlist" "haskell-microlens" + "haskell-microlens-th" "haskell-microlens-mtl" "haskell-vector" "haskell-contravariant" + "haskell-stm" "haskell-text" "haskell-text-zipper") +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f4bf04c9c2a8a19849bd089d86942312b055e6e44addd3ba5f0caccb7ba01db987f341c2175ccbe47e1cb48b5c5b5866f082997de6647fbca6ad369631256d9b') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-demos + 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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +}