[arch-commits] Commit in haskell-deepseq-generics/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Jan 11 01:28:31 UTC 2022


    Date: Tuesday, January 11, 2022 @ 01:28:31
  Author: felixonmars
Revision: 1100222

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-deepseq-generics/repos/community-staging-x86_64/
  haskell-deepseq-generics/repos/community-staging-x86_64/PKGBUILD
    (from rev 1100221, haskell-deepseq-generics/trunk/PKGBUILD)

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

Copied: haskell-deepseq-generics/repos/community-staging-x86_64/PKGBUILD (from rev 1100221, haskell-deepseq-generics/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-11 01:28:31 UTC (rev 1100222)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=deepseq-generics
+pkgname=haskell-deepseq-generics
+pkgver=0.2.0.0
+pkgrel=23
+pkgdesc="GHC.Generics-based Control.DeepSeq.rnf implementation"
+url="https://github.com/hvr/deepseq-generics"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('403d5fd9d8bee827ec2434841d06e78520f6ff5709e4b8e1223d926e819cb99727162d7004f98bff795beaff1dc7d42d07534300c11d453ac559a743a4d70e7e')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    uusi -u base -u ghc-prim $_hkgname.cabal
+}
+
+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 --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
+}
+
+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