[arch-commits] Commit in haskell-primitive/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 6 20:05:23 UTC 2018


    Date: Tuesday, November 6, 2018 @ 20:05:23
  Author: felixonmars
Revision: 402057

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-primitive/repos/community-staging-x86_64/PKGBUILD (from rev 402056, haskell-primitive/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-06 20:05:23 UTC (rev 402057)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-primitive
+pkgver=0.6.4.0
+pkgrel=3
+pkgdesc="Wrappers for primitive operations"
+url="https://hackage.haskell.org/package/primitive"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/primitive/${pkgver}/primitive-${pkgver}.tar.gz")
+sha512sums=('a9d31b386c41abd4a5e601883b6f4d230c9669d1eda840a3491fc2e5961e8bce0c2bc1026426b92a36790cd372db954b3003499c540605289540e26543e12b80')
+
+prepare() {
+  cd primitive-$pkgver
+  sed -i 's/< *4.12/<5/' primitive.cabal
+}
+
+build() {
+  cd primitive-$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
+  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 primitive-$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