[arch-commits] Commit in haskell-basic-prelude/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed May 18 13:15:42 UTC 2022
Date: Wednesday, May 18, 2022 @ 13:15:42
Author: felixonmars
Revision: 1207961
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 1207960, haskell-basic-prelude/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-basic-prelude/repos/community-staging-x86_64/PKGBUILD (from rev 1207960, haskell-basic-prelude/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-05-18 13:15:42 UTC (rev 1207961)
@@ -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=169
+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:
More information about the arch-commits
mailing list