Date: Thursday, October 11, 2018 @ 07:04:09 Author: felixonmars Revision: 392208
archrelease: copy trunk to community-staging-x86_64 Added: haskell-base-compat-batteries/repos/community-staging-x86_64/ haskell-base-compat-batteries/repos/community-staging-x86_64/PKGBUILD (from rev 392207, haskell-base-compat-batteries/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-base-compat-batteries/repos/community-staging-x86_64/PKGBUILD (from rev 392207, haskell-base-compat-batteries/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-10-11 07:04:09 UTC (rev 392208) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=base-compat-batteries +pkgname=haskell-base-compat-batteries +pkgver=0.10.1 +pkgrel=21 +pkgdesc="base-compat with extra batteries" +url="https://hackage.haskell.org/package/base-compat-batteries" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base-compat') +makedepends=('ghc' 'haskell-hspec' 'haskell-hspec-discover' 'haskell-quickcheck') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('7fc65b961b3b6bde315cf0d26fdcbbb0712af930cfb643b8f8ecba8ee02f9a7d0ba014a10014bdf38b688f2e4d1ccbcaa8cab445f64975afb7fee3e7f632bcb9') + +build() { + cd "${srcdir}/${_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 + 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 "${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" +}