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

Felix Yan felixonmars at archlinux.org
Fri Nov 6 14:30:34 UTC 2020


    Date: Friday, November 6, 2020 @ 14:30:34
  Author: felixonmars
Revision: 744353

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-serialise/repos/community-staging-x86_64/PKGBUILD (from rev 744352, haskell-serialise/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-06 14:30:34 UTC (rev 744353)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=serialise
+pkgname=haskell-serialise
+pkgver=0.2.3.0
+pkgrel=55
+pkgdesc="A binary serialisation library for Haskell values"
+url="https://github.com/well-typed/cborg"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-cborg' 'haskell-half' 'haskell-hashable' 'haskell-primitive'
+         'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-tasty'
+             'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('2bcee386d81f7606d7dad8a903ae39c9f5fda493caa08755f8f0ceabe24563bcba9bb28709972664370eef5987dfcd6957dee2444da8dbe5b8558edc0b0547ae')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/< *1.5/<2/' $_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 --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+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.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list