Date: Saturday, April 3, 2021 @ 04:43:11 Author: felixonmars Revision: 911332
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 911331, haskell-brick/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-brick/repos/community-staging-x86_64/PKGBUILD (from rev 911331, haskell-brick/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-04-03 04:43:11 UTC (rev 911332) @@ -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.60.2 +pkgrel=21 +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=('94e6df5a7be1fb786d978efc766ee0d055a9f637210fb4e0ba44073d9cfce3ab2d02d28e30d2fd8db94a6feca4f08bc153da434c27b970e5f24938d34cae7102') + +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 $MAKEFLAGS + 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 +}