Date: Thursday, May 9, 2019 @ 06:09:14 Author: felixonmars Revision: 463849
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tls/repos/community-staging-x86_64/ haskell-tls/repos/community-staging-x86_64/PKGBUILD (from rev 463848, haskell-tls/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: haskell-tls/repos/community-staging-x86_64/PKGBUILD (from rev 463848, haskell-tls/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-05-09 06:09:14 UTC (rev 463849) @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=tls +pkgname=haskell-tls +pkgver=1.4.1 +pkgrel=65 +pkgdesc="TLS/SSL protocol native implementation (Server and Client)" +url="https://github.com/vincenthz/hs-tls" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' "haskell-asn1-encoding" "haskell-asn1-types" "haskell-async" "haskell-cereal" + "haskell-cryptonite" "haskell-data-default-class" "haskell-memory" + "haskell-network" "haskell-x509" "haskell-x509-store" "haskell-x509-validation") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('a72435af9d3188fb19d6367089bc598ec17e845eccfbeb3457da89c3a3eb3f47b6041b4d2be6bff63e0c40e110b1eb8b176380e5acb82641869df4dfb871d9fd') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-hans -fnetwork -fcompat + 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 +} + +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" +}