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

Felix Yan felixonmars at archlinux.org
Tue May 28 18:32:58 UTC 2019


    Date: Tuesday, May 28, 2019 @ 18:32:58
  Author: felixonmars
Revision: 472932

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 472931, haskell-vector/trunk/PKGBUILD)

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

Copied: haskell-vector/repos/community-staging-x86_64/PKGBUILD (from rev 472931, haskell-vector/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-28 18:32:58 UTC (rev 472932)
@@ -0,0 +1,34 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-vector
+pkgver=0.12.0.3
+pkgrel=7
+pkgdesc="Efficient Arrays"
+url="https://hackage.haskell.org/package/vector"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-primitive')
+makedepends=('ghc' 'haskell-base-orphans')
+source=("https://hackage.haskell.org/packages/archive/vector/${pkgver}/vector-${pkgver}.tar.gz")
+sha512sums=('176646ae612866064303cd200e9d940fec1645bb88176a89adb00df3b9a6df96200e3c9cf85a57af3a1481d6633b353da8e03d7a6c467c40e926275fe8d36853')
+
+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