[arch-commits] Commit in haskell-generic-data/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Nov 15 08:55:02 UTC 2021


    Date: Monday, November 15, 2021 @ 08:55:02
  Author: felixonmars
Revision: 1047982

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-generic-data/repos/community-staging-x86_64/
  haskell-generic-data/repos/community-staging-x86_64/PKGBUILD
    (from rev 1047981, haskell-generic-data/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: haskell-generic-data/repos/community-staging-x86_64/PKGBUILD (from rev 1047981, haskell-generic-data/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-15 08:55:02 UTC (rev 1047982)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=generic-data
+pkgname=haskell-generic-data
+pkgver=0.9.2.1
+pkgrel=7
+pkgdesc="Deriving instances with GHC.Generics and related utilities"
+url="https://github.com/Lysxia/generic-data"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ap-normalize' 'haskell-base-orphans' 'haskell-contravariant'
+         'haskell-show-combinators')
+makedepends=('ghc' 'haskell-generic-lens' 'haskell-glob' 'haskell-inspection-testing'
+             'haskell-one-liner' 'haskell-show-combinators' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-unordered-containers')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('98324ad85fdcdddceb6de74ddfbbc61e314243fe4632d893b744bec012f341c22e2813d4c36dd567361ae49e5f275f93cce926e91b97e37f9df5d285bc8e267f')
+
+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