[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 29 12:21:05 UTC 2017


    Date: Wednesday, November 29, 2017 @ 12:21:04
  Author: felixonmars
Revision: 270663

addpkg: haskell-storablevector 0.2.12.1-1

Added:
  haskell-storablevector/
  haskell-storablevector/repos/
  haskell-storablevector/trunk/
  haskell-storablevector/trunk/PKGBUILD

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

Added: haskell-storablevector/trunk/PKGBUILD
===================================================================
--- haskell-storablevector/trunk/PKGBUILD	                        (rev 0)
+++ haskell-storablevector/trunk/PKGBUILD	2017-11-29 12:21:04 UTC (rev 270663)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=storablevector
+pkgname=haskell-storablevector
+pkgver=0.2.12.1
+pkgrel=1
+pkgdesc="Fast, packed, strict storable arrays with a list interface like ByteString"
+url="http://www.haskell.org/haskellwiki/Storable_Vector"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-non-negative' 'haskell-utility-ht' 'haskell-unsafe'
+         'haskell-quickcheck' 'haskell-syb')
+makedepends=('ghc' 'haskell-random')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('a4963354d9b654608216062b76a133d5138acf4f3e09c98585762faa5facd16e27472e18ffdbe57255f443983d2d3018dcf5cc3d340aab6ff55180957cc31dc1')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsplitbase -fseparatesyb
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+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"
+}


Property changes on: haskell-storablevector/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property


More information about the arch-commits mailing list