[arch-commits] Commit in haskell-http2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri May 11 16:47:21 UTC 2018
Date: Friday, May 11, 2018 @ 16:47:20
Author: felixonmars
Revision: 320815
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-http2/repos/community-staging-x86_64/
haskell-http2/repos/community-staging-x86_64/PKGBUILD
(from rev 320814, haskell-http2/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: haskell-http2/repos/community-staging-x86_64/PKGBUILD (from rev 320814, haskell-http2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-11 16:47:20 UTC (rev 320815)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=http2
+pkgname=haskell-http2
+pkgver=1.6.3
+pkgrel=22
+pkgdesc="HTTP/2.0 library including frames and HPACK"
+url="https://github.com/kazu-yamamoto/http2"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-case-insensitive" "haskell-psqueues" "haskell-stm")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('4227424f8a73181a1036bf4a0593116ebea6d1ac036ea2f5f428128580012bfc0b98e02b6fe0477d561c4f73f9ce2c30302e301727caf0fedbc3743111846e39')
+
+prepare() {
+ sed -i '/bytestring-builder/d' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${_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-devel
+ 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 "${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