Date: Saturday, September 3, 2022 @ 08:48:12
  Author: felixonmars
Revision: 1291144

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

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

Copied: haskell-basic-prelude/repos/community-staging-x86_64/PKGBUILD (from rev 
1291143, haskell-basic-prelude/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-09-03 08:48:12 UTC (rev 1291144)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <je...@archlinux.org>
+
+_hkgname=basic-prelude
+pkgname=haskell-basic-prelude
+pkgver=0.7.0
+pkgrel=195
+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 --datasubdir=$pkgname \
+      --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+  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:

Reply via email to