Date: Monday, January 11, 2021 @ 21:48:48 Author: felixonmars Revision: 818657
archrelease: copy trunk to community-staging-x86_64 Added: haskell-extra/repos/community-staging-x86_64/ haskell-extra/repos/community-staging-x86_64/PKGBUILD (from rev 818656, haskell-extra/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: haskell-extra/repos/community-staging-x86_64/PKGBUILD (from rev 818656, haskell-extra/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-01-11 21:48:48 UTC (rev 818657) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=extra +pkgname=haskell-extra +pkgver=1.7.9 +pkgrel=15 +pkgdesc="Extra functions I use." +url="https://github.com/ndmitchell/extra#readme" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-clock') +makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('bc231e72f40a357c8c64c2c33fa2c3d64f67a6eb2bbbd903a5415152497011d0ee7d597de8dc02f5e5b82c4a8a5d7f61fecdbba7f1e07981182d7c05547a7546') + +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 + 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 +}