[arch-commits] Commit in haskell-optics-extra/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Mar 29 17:06:04 UTC 2020
Date: Sunday, March 29, 2020 @ 17:06:03
Author: felixonmars
Revision: 606141
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-optics-extra/repos/community-staging-x86_64/
haskell-optics-extra/repos/community-staging-x86_64/PKGBUILD
(from rev 606140, haskell-optics-extra/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-optics-extra/repos/community-staging-x86_64/PKGBUILD (from rev 606140, haskell-optics-extra/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-29 17:06:03 UTC (rev 606141)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=optics-extra
+pkgname=haskell-optics-extra
+pkgver=0.2
+pkgrel=7
+pkgdesc="Extra utilities and instances for optics-core"
+url="https://github.com/well-typed/optics-extra"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-indexed-profunctors' 'haskell-optics-core'
+ 'haskell-unordered-containers' 'haskell-vector')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('1c111ad2681c2c8bb8259cf8e5fd3931dd33c2bbcd0d76293a29d053e6c5cdd39a98c593c6f0a6d49224b4f8397c3cd0ee5a54662ddebcbfbb153bd6ca99e31e')
+
+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
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+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