[arch-commits] Commit in haskell-vector/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Jan 20 21:05:23 UTC 2019
Date: Sunday, January 20, 2019 @ 21:05:22
Author: felixonmars
Revision: 425611
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 425610, haskell-vector/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: haskell-vector/repos/community-staging-x86_64/PKGBUILD (from rev 425610, haskell-vector/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-01-20 21:05:22 UTC (rev 425611)
@@ -0,0 +1,34 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-vector
+pkgver=0.12.0.2
+pkgrel=3
+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=('e4d02046e82bb14f09e27aa6c08f08594778aee855e290b9f77fb3608f1a3e3524919eb6266dba97b1c4e0766de9fee7b0eb26a015d8cdceb1dcfd9ed2e64c40')
+
+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