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

Felix Yan felixonmars at archlinux.org
Sun Mar 1 19:54:29 UTC 2020


    Date: Sunday, March 1, 2020 @ 19:54:29
  Author: felixonmars
Revision: 588088

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 588087, haskell-basic-prelude/trunk/PKGBUILD)

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

Copied: haskell-basic-prelude/repos/community-staging-x86_64/PKGBUILD (from rev 588087, haskell-basic-prelude/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-03-01 19:54:29 UTC (rev 588088)
@@ -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=12
+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
+  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