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

Felix Yan felixonmars at gemini.archlinux.org
Wed Jul 28 06:32:09 UTC 2021


    Date: Wednesday, July 28, 2021 @ 06:32:09
  Author: felixonmars
Revision: 988368

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 988367, haskell-quickcheck-instances/trunk/PKGBUILD)

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

Copied: haskell-quickcheck-instances/repos/community-staging-x86_64/PKGBUILD (from rev 988367, haskell-quickcheck-instances/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-07-28 06:32:09 UTC (rev 988368)
@@ -0,0 +1,48 @@
+# 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.25.2
+pkgrel=60
+pkgdesc="Common quickcheck instances"
+url="https://github.com/haskellari/qc-instances"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-case-insensitive' 'haskell-data-fix'
+         'haskell-hashable' 'haskell-integer-logarithms' 'haskell-old-time' 'haskell-scientific'
+         'haskell-splitmix' 'haskell-strict' 'haskell-tagged' 'haskell-these'
+         'haskell-time-compat' 'haskell-transformers-compat' 'haskell-unordered-containers'
+         'haskell-uuid-types' 'haskell-vector')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1e4df0c814cfdd12370d25ba66e0d9698e25cd480d9609ab5a45d4492df7a4600b79f5412f8224d90976c3accd59b16f8941b351bf8980e70e846ec08e6efced')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    uusi -u base -u transformers-compat $_hkgname.cabal
+}
+
+build() {
+    cd $_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 $MAKEFLAGS
+    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 $_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