Date: Thursday, May 17, 2018 @ 12:27:16
  Author: felixonmars
Revision: 323711

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-vector-binary-instances/repos/community-staging-x86_64/
  haskell-vector-binary-instances/repos/community-staging-x86_64/PKGBUILD
    (from rev 323710, haskell-vector-binary-instances/trunk/PKGBUILD)

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

Copied: haskell-vector-binary-instances/repos/community-staging-x86_64/PKGBUILD 
(from rev 323710, haskell-vector-binary-instances/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-17 12:27:16 UTC (rev 323711)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=vector-binary-instances
+pkgname=haskell-vector-binary-instances
+pkgver=0.2.4
+pkgrel=2
+pkgdesc="Instances of Data.Binary and Data.Serialize for vector"
+url="https://github.com/bos/vector-binary-instances";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-vector")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('a01b7c279fed49bd82d40bb1ef4f552161347aab4853db04e7f412f684095aecdf93be2050f1c712357a85f002b3735a394b946d9875a6aa5045d7eeede9a240')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i 's/<.*4.11/<5/' $_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
+    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"
+}

Reply via email to