Date: Wednesday, June 5, 2019 @ 13:39:03 Author: felixonmars Revision: 476990
archrelease: copy trunk to community-staging-x86_64 Added: haskell-brick/repos/community-staging-x86_64/ haskell-brick/repos/community-staging-x86_64/PKGBUILD (from rev 476989, haskell-brick/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-brick/repos/community-staging-x86_64/PKGBUILD (from rev 476989, haskell-brick/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-06-05 13:39:03 UTC (rev 476990) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=brick +pkgname=haskell-brick +pkgver=0.46 +pkgrel=38 +pkgdesc="A declarative terminal user interface library" +url="https://github.com/jtdaugherty/brick" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-vty' 'haskell-data-clist' 'haskell-dlist' 'haskell-microlens' + 'haskell-microlens-th' 'haskell-microlens-mtl' 'haskell-config-ini' 'haskell-vector' + 'haskell-contravariant' 'haskell-text-zipper' 'haskell-word-wrap') +makedepends=('ghc' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('dc238bbec9df56f963614bc2b818c6df1883b3dcf58a078fe18e8d058c6245cdf45d112168a374bc0cb7bdd10b5f825027e6aba6bc7dc3d6cd56cccaa34bb80a') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-demos + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_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" +}