[arch-commits] Commit in haskell-xml-conduit/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 27 07:48:53 UTC 2017
Date: Monday, November 27, 2017 @ 07:48:51
Author: felixonmars
Revision: 269437
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-xml-conduit/repos/community-staging-x86_64/
haskell-xml-conduit/repos/community-staging-x86_64/PKGBUILD
(from rev 269436, haskell-xml-conduit/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-xml-conduit/repos/community-staging-x86_64/PKGBUILD (from rev 269436, haskell-xml-conduit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-11-27 07:48:51 UTC (rev 269437)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=xml-conduit
+pkgname=haskell-xml-conduit
+pkgver=1.7.0
+pkgrel=2
+pkgdesc="Pure-Haskell utilities for dealing with XML with the conduit package."
+url="https://github.com/snoyberg/xml"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-attoparsec" "haskell-blaze-builder" "haskell-text"
+ "haskell-blaze-markup" "haskell-conduit" "haskell-conduit-extra"
+ "haskell-data-default-class" "haskell-monad-control" "haskell-resourcet"
+ "haskell-blaze-html" "haskell-xml-types")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('083a4e2ee33256bc30fd634ac5b89a5ca03868854583c71c0cd723097e5388b104758edc005d0701dc5a85d54133dfa7dc1d59d95727a4f6b44d5fd78b50a88a')
+
+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
+ 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