[arch-commits] Commit in haskell-dns/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Jan 26 10:06:10 UTC 2018
Date: Friday, January 26, 2018 @ 10:06:07
Author: felixonmars
Revision: 287051
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-dns/repos/community-staging-x86_64/
haskell-dns/repos/community-staging-x86_64/PKGBUILD
(from rev 287050, haskell-dns/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: haskell-dns/repos/community-staging-x86_64/PKGBUILD (from rev 287050, haskell-dns/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-01-26 10:06:07 UTC (rev 287051)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=dns
+pkgname=haskell-dns
+pkgver=3.0.1
+pkgrel=2
+pkgdesc="DNS library in Haskell"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-async' 'haskell-auto-update' 'haskell-attoparsec'
+ 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' 'haskell-cryptonite'
+ 'haskell-iproute' 'haskell-mtl' 'haskell-network' 'haskell-psqueues' 'haskell-safe')
+makedepends=('ghc' 'haskell-doctest' 'haskell-hspec' 'haskell-word8' 'haskell-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('71ac67ac0cb6720fe708de02ccea45201e9771537b2a9eb0aab949a111712e245d26baafb3bbc6d71c590e28d439b19a145d3dddea3fe868332dcfb2fc159367')
+
+prepare() {
+ sed -i '/doctest/a \ "-dynamic",' $_hkgname-$pkgver/test2/doctests.hs
+}
+
+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
+ # https://github.com/kazu-yamamoto/dns/issues/102
+ runhaskell Setup test || warning "Tests failed"
+}
+
+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"
+}
More information about the arch-commits
mailing list