Date: Sunday, March 1, 2020 @ 09:51:51 Author: felixonmars Revision: 587396
archrelease: copy trunk to community-x86_64 Added: haskell-dns/repos/community-x86_64/PKGBUILD (from rev 587395, haskell-dns/trunk/PKGBUILD) Deleted: haskell-dns/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 97 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 51 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-03-01 09:51:35 UTC (rev 587395) +++ PKGBUILD 2020-03-01 09:51:51 UTC (rev 587396) @@ -1,46 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=dns -pkgname=haskell-dns -pkgver=4.0.0 -pkgrel=3 -pkgdesc="DNS library in Haskell" -url="https://hackage.haskell.org/package/${_hkgname}" -license=("BSD") -arch=('x86_64') -depends=('ghc-libs' 'haskell-async' 'haskell-auto-update' 'haskell-attoparsec' - 'haskell-base16-bytestring' 'haskell-base64-bytestring' 'haskell-cryptonite' - 'haskell-hourglass' 'haskell-iproute' 'haskell-network' 'haskell-psqueues') -makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hspec' 'haskell-word8' 'haskell-quickcheck') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('d4d2cc3d54042aa169af03220026e326353c26b76a825ee8ab44848e7497b0103787eb68fcba966a3d7e998a3e4506d75813832880d487c4f7b5021392445e5a') - -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 - 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 - # https://github.com/kazu-yamamoto/dns/issues/102 - runhaskell Setup test || warning "Tests failed" -} - -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 -} Copied: haskell-dns/repos/community-x86_64/PKGBUILD (from rev 587395, haskell-dns/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-03-01 09:51:51 UTC (rev 587396) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=dns +pkgname=haskell-dns +pkgver=4.0.1 +pkgrel=1 +pkgdesc="DNS library in Haskell" +url="https://hackage.haskell.org/package/${_hkgname}" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-async' 'haskell-auto-update' 'haskell-attoparsec' + 'haskell-base16-bytestring' 'haskell-base64-bytestring' 'haskell-cryptonite' + 'haskell-hourglass' 'haskell-iproute' 'haskell-network' 'haskell-psqueues') +makedepends=('ghc' 'haskell-doctest' 'haskell-hspec' 'haskell-word8' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('5c3d86c95aeb61ffdf951472a18ce2878b9dad1069efdf02fd7aff4065cf88c93c13d197488af65811440c674a75601b0c3336a6de6a9bff98cca018254b6e9c') + +prepare() { + cd $_hkgname-$pkgver + sed -i 's/import Network.Socket/import Network.Socket hiding (send)/' test2/IOSpec.hs +} + +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 + 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 + # https://github.com/kazu-yamamoto/dns/issues/102 + runhaskell Setup test || warning "Tests failed" +} + +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 +}