[arch-commits] Commit in haskell-lens-action/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 23 21:58:10 UTC 2021
Date: Thursday, December 23, 2021 @ 21:58:10
Author: felixonmars
Revision: 1083354
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-lens-action/repos/community-staging-x86_64/
haskell-lens-action/repos/community-staging-x86_64/PKGBUILD
(from rev 1083353, haskell-lens-action/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-lens-action/repos/community-staging-x86_64/PKGBUILD (from rev 1083353, haskell-lens-action/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-23 21:58:10 UTC (rev 1083354)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lens-action
+pkgname=haskell-lens-action
+pkgver=0.2.6
+pkgrel=1
+pkgdesc="Monadic Getters and Folds"
+url="https://github.com/ekmett/lens-action"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-comonad' 'haskell-contravariant' 'haskell-lens'
+ 'haskell-profunctors' 'haskell-semigroupoids')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('44f0639063db6ec80dd2cee274b0fe9135330ee12a007329d419cfe1522738169e0915b32250a340621d4084b4dd2c54a84465e24f4ebd943d6bda59b5d380da')
+
+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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
+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