[arch-commits] Commit in haskell-lens-aeson/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Mar 30 21:27:27 UTC 2020
Date: Monday, March 30, 2020 @ 21:27:26
Author: felixonmars
Revision: 607320
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-lens-aeson/repos/community-staging-x86_64/
haskell-lens-aeson/repos/community-staging-x86_64/PKGBUILD
(from rev 607319, haskell-lens-aeson/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: haskell-lens-aeson/repos/community-staging-x86_64/PKGBUILD (from rev 607319, haskell-lens-aeson/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-30 21:27:26 UTC (rev 607320)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lens-aeson
+pkgname=haskell-lens-aeson
+pkgver=1.1
+pkgrel=22
+pkgdesc="Law-abiding lenses for aeson"
+url="https://github.com/lens/lens-aeson/"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-lens' 'haskell-scientific'
+ 'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('a5e1b98cc50342ddbaf36a9c6f7a87cdfd8e8abb66852777ef8fc3362a3cb7bac473c3dfd7a4ad2f57f3318c5dca6ec7a07e2a4eae05bdcc34308d188d791460')
+
+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 \
+ -f-test-doctests
+ 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