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

Felix Yan felixonmars at archlinux.org
Thu Dec 31 21:18:37 UTC 2020


    Date: Thursday, December 31, 2020 @ 21:18:37
  Author: felixonmars
Revision: 800940

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-basic-prelude/repos/community-staging-x86_64/
  haskell-basic-prelude/repos/community-staging-x86_64/PKGBUILD
    (from rev 800939, haskell-basic-prelude/trunk/PKGBUILD)

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

Copied: haskell-basic-prelude/repos/community-staging-x86_64/PKGBUILD (from rev 800939, haskell-basic-prelude/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-31 21:18:37 UTC (rev 800940)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_hkgname=basic-prelude
+pkgname=haskell-basic-prelude
+pkgver=0.7.0
+pkgrel=63
+pkgdesc='An enhanced core prelude; a common foundation for alternate preludes'
+arch=(x86_64)
+url="https://hackage.haskell.org/package/$_hkgname"
+license=(MIT)
+depends=(ghc-libs haskell-hashable haskell-unordered-containers haskell-vector)
+makedepends=(ghc)
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('34b62d1cdddb8d5c5ec51f0b9cca8746174f2daf40e5fe0f0188707da1f590844bffccfc6d049e8e161323f541281130aa92700514455a947c503274422e271f')
+
+build() {
+  cd $_hkgname-$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 $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
+}
+
+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
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list