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

Felix Yan felixonmars at archlinux.org
Sat Jun 2 05:18:26 UTC 2018


    Date: Saturday, June 2, 2018 @ 05:18:26
  Author: felixonmars
Revision: 337098

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-quickcheck-instances/repos/community-staging-x86_64/
  haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD
    (from rev 337097, haskell-quickcheck-instances/trunk/PKGBUILD)

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

Copied: haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD (from rev 337097, haskell-quickcheck-instances/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-02 05:18:26 UTC (rev 337098)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=quickcheck-instances
+pkgname=haskell-quickcheck-instances
+pkgver=0.3.18
+pkgrel=13
+pkgdesc="Common quickcheck instances"
+url="https://github.com/phadej/qc-instances"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-base-compat' 'haskell-case-insensitive'
+         'haskell-hashable' 'haskell-old-time' 'haskell-scientific' 'haskell-tagged'
+         'haskell-transformers-compat' 'haskell-unordered-containers' 'haskell-uuid-types'
+         'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f3b5a7ebad823f6374c718bc6519081fdb92bd9733f6bcf56b62557d5ce7a9d159fe8d3cf75b168dbbf9313835d882febb9bb40e8158a8028be9b8e4c4e247d1')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/<.*0.10/<1/' $_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-bytestring-builder
+    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