[arch-commits] Commit in haskell-generic-lens-core/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Apr 10 00:32:50 UTC 2021
Date: Saturday, April 10, 2021 @ 00:32:49
Author: felixonmars
Revision: 915387
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-generic-lens-core/repos/community-staging-x86_64/
haskell-generic-lens-core/repos/community-staging-x86_64/PKGBUILD
(from rev 915386, haskell-generic-lens-core/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-generic-lens-core/repos/community-staging-x86_64/PKGBUILD (from rev 915386, haskell-generic-lens-core/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-04-10 00:32:49 UTC (rev 915387)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=generic-lens-core
+pkgname=haskell-generic-lens-core
+pkgver=2.1.0.0
+pkgrel=3
+pkgdesc="Generically derive traversals, lenses and prisms"
+url="https://github.com/kcsongor/generic-lens"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-indexed-profunctors')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('9a64ab9a2f7c0f485088ef0e5a6bb75668a8a7a9c059f566b3ec4145f38edc35f49331e7d2553f6f7753f2a02fb9bad461c978e90c44f65b878b3d70bddda291')
+
+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 $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
+}
+
+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