[arch-commits] Commit in haskell-xml-types/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 27 06:33:25 UTC 2017


    Date: Monday, November 27, 2017 @ 06:33:24
  Author: felixonmars
Revision: 269295

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-xml-types/repos/community-staging-x86_64/
  haskell-xml-types/repos/community-staging-x86_64/PKGBUILD
    (from rev 269294, haskell-xml-types/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: haskell-xml-types/repos/community-staging-x86_64/PKGBUILD (from rev 269294, haskell-xml-types/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-27 06:33:24 UTC (rev 269295)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=xml-types
+pkgname=haskell-xml-types
+pkgver=0.3.6
+pkgrel=10
+pkgdesc="Basic types for representing XML"
+url="https://john-millikin.com/software/haskell-xml/"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-text")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('552f2230e55bc8e45a62e06bbe8c0cb7844c5d73185303b3290632a816c5956b781fff1b0a679ce33b1759f1b9c815dab8063f6b9ced0c9e94ac314cf77b34ea')
+
+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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt"
+}



More information about the arch-commits mailing list