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

Felix Yan felixonmars at archlinux.org
Thu Jun 28 19:11:52 UTC 2018


    Date: Thursday, June 28, 2018 @ 19:11:52
  Author: felixonmars
Revision: 347528

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-binary-tagged/repos/community-staging-x86_64/
  haskell-binary-tagged/repos/community-staging-x86_64/PKGBUILD
    (from rev 347527, haskell-binary-tagged/trunk/PKGBUILD)

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

Copied: haskell-binary-tagged/repos/community-staging-x86_64/PKGBUILD (from rev 347527, haskell-binary-tagged/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-28 19:11:52 UTC (rev 347528)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=binary-tagged
+pkgname=haskell-binary-tagged
+pkgver=0.1.5
+pkgrel=11
+pkgdesc="Tagged binary serialisation."
+url="https://github.com/phadej/binary-tagged#readme"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-base16-bytestring' 'haskell-generics-sop'
+         'haskell-hashable' 'haskell-scientific' 'haskell-sha' 'haskell-tagged'
+         'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('cc4b4797a0a90a826740263eebba5e75b5e0c3c7648cf63ee95a1a000ac1a8c9709e1e82f82e69b227f51f43953be5366a372223d4096163645cfd38663866bc')
+
+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
+    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