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

Felix Yan felixonmars at archlinux.org
Mon Nov 27 04:37:11 UTC 2017


    Date: Monday, November 27, 2017 @ 04:37:10
  Author: felixonmars
Revision: 269105

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-vector/repos/community-staging-x86_64/PKGBUILD (from rev 269104, haskell-vector/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-27 04:37:10 UTC (rev 269105)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-vector
+pkgver=0.12.0.1
+pkgrel=5
+pkgdesc="Efficient Arrays"
+url="https://hackage.haskell.org/package/vector"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-primitive")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/vector/${pkgver}/vector-${pkgver}.tar.gz")
+sha512sums=('17cae6c2e36e6e73190ebce0c3f38c4b8ec01d4336d2bb9b98f85ea299cab4140d4490493f6cbd472c1b0a32809f3ce344955ab6cd7dbacdca56ffa5aec4bad4')
+
+prepare() {
+  sed -i 's/base >= 4.5 && < 4.10/base >= 4.5/' vector-$pkgver/vector.cabal
+}
+
+build() {
+  cd "$srcdir"/vector-${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"/vector-${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 -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
+  rm -f "$pkgdir"/usr/share/doc/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list