[arch-commits] Commit in haskell-indexed-profunctors/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Feb 16 13:26:21 UTC 2020
Date: Sunday, February 16, 2020 @ 13:26:21
Author: felixonmars
Revision: 572545
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-indexed-profunctors/repos/community-staging-x86_64/
haskell-indexed-profunctors/repos/community-staging-x86_64/PKGBUILD
(from rev 572544, haskell-indexed-profunctors/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-indexed-profunctors/repos/community-staging-x86_64/PKGBUILD (from rev 572544, haskell-indexed-profunctors/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-02-16 13:26:21 UTC (rev 572545)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=indexed-profunctors
+pkgname=haskell-indexed-profunctors
+pkgver=0.1
+pkgrel=3
+pkgdesc="Utilities for indexed profunctors"
+url="https://github.com/well-typed/optics"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('93ad039075a37826f4aa3c3592a19bc655c8988f8d02c033f4f05ae8bd683efbe5c287cf992f6a5ca63572a04cab55c7df402cef0955dfe0715d457a15d633a7')
+
+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