Date: Monday, January 27, 2020 @ 22:13:54 Author: felixonmars Revision: 556550
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 556549, haskell-vector/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-vector/repos/community-staging-x86_64/PKGBUILD (from rev 556549, haskell-vector/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-01-27 22:13:54 UTC (rev 556550) @@ -0,0 +1,39 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> + +pkgname=haskell-vector +pkgver=0.12.0.3 +pkgrel=24 +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') + +prepare() { + cd vector-${pkgver} + sed -i 's/< *4.13/<5/' vector.cabal +} + +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 +}