[arch-commits] Commit in haskell-mmorph/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Nov 10 16:17:44 UTC 2021
Date: Wednesday, November 10, 2021 @ 16:17:44
Author: felixonmars
Revision: 1039823
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-mmorph/repos/community-staging-x86_64/
haskell-mmorph/repos/community-staging-x86_64/PKGBUILD
(from rev 1039822, haskell-mmorph/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-mmorph/repos/community-staging-x86_64/PKGBUILD (from rev 1039822, haskell-mmorph/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-10 16:17:44 UTC (rev 1039823)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=mmorph
+pkgname=haskell-mmorph
+pkgver=1.2.0
+pkgrel=3
+pkgdesc="Monad morphisms"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-transformers-compat')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('06c9e2b2d7caa65c6049225ba40a54cf9480e561a6ea521b4c83e38094beea0c2ed595244f434793c6964c6161ac3122da5a8b53fe772d527fbefb15e4cc2c14')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ uusi -u transformers-compat $_hkgname.cabal
+}
+
+build() {
+ cd $_hkgname-$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 --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
+}
More information about the arch-commits
mailing list