[arch-commits] Commit in haskell-monad-logger/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Mar 14 21:22:47 UTC 2020
Date: Saturday, March 14, 2020 @ 21:22:46
Author: felixonmars
Revision: 597268
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-monad-logger/repos/community-staging-x86_64/
haskell-monad-logger/repos/community-staging-x86_64/PKGBUILD
(from rev 597267, haskell-monad-logger/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-monad-logger/repos/community-staging-x86_64/PKGBUILD (from rev 597267, haskell-monad-logger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-14 21:22:46 UTC (rev 597268)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=monad-logger
+pkgname=haskell-monad-logger
+pkgver=0.3.32
+pkgrel=7
+pkgdesc="A class of monads which can log messages."
+url="https://github.com/kazu-yamamoto/logger"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-conduit' 'haskell-conduit-extra' 'haskell-exceptions'
+ 'haskell-fast-logger' 'haskell-lifted-base' 'haskell-monad-control' 'haskell-monad-loops'
+ 'haskell-resourcet' 'haskell-stm-chans'
+ 'haskell-transformers-base' 'haskell-transformers-compat' 'haskell-unliftio-core')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('d65fad10fc4bcc5a597c7a9b03b9e275c40ef7c930d1b7f703115c2f18b8bd3c5a42b4c3cc445889e0878e62709c62fdf5f0b2b60d1a15430064f11853b01ef3')
+
+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 \
+ -ftemplate_haskell
+ 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
+}
More information about the arch-commits
mailing list