Date: Tuesday, January 26, 2021 @ 21:23:30
  Author: felixonmars
Revision: 830995

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-storablevector/repos/community-staging-x86_64/PKGBUILD (from 
rev 830994, haskell-storablevector/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-01-26 21:23:30 UTC (rev 830995)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=storablevector
+pkgname=haskell-storablevector
+pkgver=0.2.13.1
+pkgrel=50
+pkgdesc="Fast, packed, strict storable arrays with a list interface like 
ByteString"
+url="https://www.haskell.org/haskellwiki/Storable_Vector";
+license=("BSD")
+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=('ec504ea2d1dd67ce5b9c93af5c7bd3e003d1102528f6b8aae7e0219615b8b2c949b256fdf27c20745e3dd213afeccec2ec3c64c606a2628566888a6399d78eaf')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/semigroups/d' $_hkgname.cabal
+}
+
+build() {
+    cd $_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 $MAKEFLAGS
+    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 $_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