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

Felix Yan felixonmars at archlinux.org
Thu Aug 1 07:24:13 UTC 2019


    Date: Thursday, August 1, 2019 @ 07:24:13
  Author: felixonmars
Revision: 496200

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-store/repos/community-staging-x86_64/PKGBUILD (from rev 496199, haskell-store/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-08-01 07:24:13 UTC (rev 496200)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=store
+pkgname=haskell-store
+pkgver=0.5.1.2
+pkgrel=3
+pkgdesc="Fast binary serialization"
+url="https://github.com/fpco/store"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-async' 'haskell-base-orphans' 'haskell-base64-bytestring'
+         'haskell-contravariant' 'haskell-cryptohash' 'haskell-free'
+         'haskell-hashable' 'haskell-hspec' 'haskell-hspec-smallcheck' 'haskell-lifted-base'
+         'haskell-monad-control' 'haskell-mono-traversable' 'haskell-network' 'haskell-primitive'
+         'haskell-resourcet' 'haskell-safe' 'haskell-smallcheck'
+         'haskell-store-core' 'haskell-syb' 'haskell-th-lift' 'haskell-th-lift-instances'
+         'haskell-th-orphans' 'haskell-th-reify-many' 'haskell-th-utilities'
+         'haskell-unordered-containers' 'haskell-vector' 'haskell-void')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8f71775952874a08a97f83794cfec9afdb5ff2a2f93144d5a6111ad9d56f307b1d54824129bf4771e5f9dc9b44f82235c0bf4fc608777d8b5ab4aa491403eba0')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/semigroups/d' $_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-comparison-bench -f-small-bench
+    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 $_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