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

Felix Yan felixonmars at archlinux.org
Thu Dec 28 16:39:47 UTC 2017


    Date: Thursday, December 28, 2017 @ 16:39:46
  Author: felixonmars
Revision: 276543

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-pointed/repos/community-staging-x86_64/
  haskell-pointed/repos/community-staging-x86_64/PKGBUILD
    (from rev 276542, haskell-pointed/trunk/PKGBUILD)

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

Copied: haskell-pointed/repos/community-staging-x86_64/PKGBUILD (from rev 276542, haskell-pointed/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-28 16:39:46 UTC (rev 276543)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=pointed
+pkgname=haskell-pointed
+pkgver=5
+pkgrel=47
+pkgdesc="Pointed and copointed data"
+url="https://github.com/ekmett/pointed/"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-comonad" "haskell-data-default-class" "haskell-hashable"
+         "haskell-kan-extensions" "haskell-semigroupoids" "haskell-semigroups" "haskell-stm"
+         "haskell-tagged" "haskell-transformers-compat" "haskell-unordered-containers")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('940a0c30845cb39238a0056f12da4debb488bec9bfac11a384320c79102e92dbd949526188eca46a2e543dfe612f5ee335955413e4f81eb1c1c9bc321805b598')
+
+prepare() {
+    sed -i 's/data-default-class >= 0.0.1 && < 0.1/data-default-class >= 0.0.1 \&\& < 0.2/' ${_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 \
+            -fcomonad -fcontainers -fkan-extensions -fsemigroupoids -fsemigroups \
+            -fstm -ftagged -ftransformers -funordered-containers
+    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