[arch-commits] Commit in haskell-storablevector/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Nov 17 04:48:31 UTC 2021
Date: Wednesday, November 17, 2021 @ 04:48:30
Author: felixonmars
Revision: 1049573
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 1049572, haskell-storablevector/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-storablevector/repos/community-staging-x86_64/PKGBUILD (from rev 1049572, haskell-storablevector/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-17 04:48:30 UTC (rev 1049573)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=storablevector
+pkgname=haskell-storablevector
+pkgver=0.2.13.1
+pkgrel=106
+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 --ghc-option=-fllvm \
+ -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 --show-details=direct
+}
+
+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
+}
More information about the arch-commits
mailing list