Date: Sunday, March 11, 2018 @ 10:00:23 Author: felixonmars Revision: 306106
upgpkg: haskell-microlens-aeson 2.3.0-1 rebuild with microlens-platform,0.3.10 microlens-th,0.4.2 microlens-ghc,0.4.9 microlens-aeson,2.3.0 microlens,0.4.9 Modified: haskell-microlens-aeson/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-03-10 23:57:34 UTC (rev 306105) +++ PKGBUILD 2018-03-11 10:00:23 UTC (rev 306106) @@ -3,23 +3,28 @@ _hkgname=microlens-aeson pkgname=haskell-microlens-aeson -pkgver=2.2.0.2 -pkgrel=18 +pkgver=2.3.0 +pkgrel=1 pkgdesc="Law-abiding lenses for Aeson, using microlens" url="https://github.com/fosskers/microlens-aeson/" license=('MIT') arch=('x86_64') -depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-microlens' 'haskell-scientific' - 'haskell-text' 'haskell-unordered-containers' 'haskell-vector') -makedepends=('ghc') +depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-hashable' 'haskell-microlens' + 'haskell-scientific' 'haskell-text' 'haskell-unordered-containers' 'haskell-vector') +makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit') source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -sha512sums=('debb55f5c66e873cd64712f2e82bcee920db14aaba0fe1f282c1c0209e9db86b2a1a18b6081ac94361a70e5aed1dbb76edc129bfc19609f2454c8d5c7bcba1cb') +sha512sums=('675c92fdb5f40a5c3c73c93555d55844a5b6b999717545682d80f5fe75b43f8b998af22164b98a034a6e8eea7590bbe1c253b69de6ed2bf411308942108ca804') +prepare() { + cd $_hkgname-$pkgver + echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs +} + build() { - cd "${srcdir}/${_hkgname}-${pkgver}" - + cd $_hkgname-$pkgver + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --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 @@ -28,8 +33,13 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { - cd "${srcdir}/${_hkgname}-${pkgver}" + 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"
