Date: Thursday, January 18, 2018 @ 17:47:55 Author: felixonmars Revision: 283914
upgpkg: haskell-zip-archive 0.3.2-1 rebuild with zip-archive,0.3.2 Modified: haskell-zip-archive/trunk/PKGBUILD ----------+ PKGBUILD | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-18 17:36:34 UTC (rev 283913) +++ PKGBUILD 2018-01-18 17:47:55 UTC (rev 283914) @@ -4,23 +4,23 @@ _hkgname=zip-archive pkgname=haskell-zip-archive -pkgver=0.3.1.1 -pkgrel=5 +pkgver=0.3.2 +pkgrel=1 pkgdesc="Library for creating and modifying zip archives." url="https://github.com/jgm/zip-archive" license=("custom:BSD3") arch=('x86_64') -depends=('ghc-libs' "haskell-digest" "haskell-mtl" "haskell-old-time" "haskell-temporary" "haskell-text" - "haskell-zlib") -makedepends=('ghc') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('6ee07b9dd05a2d03e1cfccff6b65d2fbe9bc74de3a47e7e2c378a2ae6b0f1440b25bd6b8b717b0fea5716aabe33c8425671c2f8ce71a288fd7ff663e5cfddea9') +depends=('ghc-libs' 'haskell-digest' 'haskell-mtl' 'haskell-old-time' 'haskell-temporary' + 'haskell-text' 'haskell-zlib') +makedepends=('ghc' 'haskell-hunit') +source=("$pkgname-$pkgver.tar.gz::https://github.com/jgm/zip-archive/archive/$pkgver.tar.gz") +sha512sums=('d68679b81d83544c23267f84c7ddccc295f35a19aee9836442e53d2e2b5f5fef4f5ca4560cb9529661ab31ada06b862c8d18da9f66321bb30d7613c922ad9eba') 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 \ -f-executable -fsplitbase runhaskell Setup build @@ -30,8 +30,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"