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

Felix Yan felixonmars at archlinux.org
Fri Jun 1 11:12:28 UTC 2018


    Date: Friday, June 1, 2018 @ 11:12:27
  Author: felixonmars
Revision: 335974

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-xcb-types/repos/community-staging-x86_64/PKGBUILD (from rev 335973, haskell-xcb-types/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-01 11:12:27 UTC (rev 335974)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=xcb-types
+pkgname=haskell-xcb-types
+pkgver=0.9.0
+pkgrel=3
+pkgdesc="Parses XML files used by the XCB project"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-xml')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0e2a3b76ec61cb8bcd4625940a50886867c1b88d95db778933162bd856bff5d63017d77c533593253d79fded47e91fd15165814ec91843f402ebe29ddac608c3')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/import Data.Maybe/a import Prelude hiding ((<>))' Data/XCB/Pretty.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}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsplit-base
+    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