[arch-commits] Commit in haskell-deepseq-generics/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 23 21:53:55 UTC 2020
Date: Wednesday, December 23, 2020 @ 21:53:55
Author: felixonmars
Revision: 785412
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 785411, haskell-deepseq-generics/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-deepseq-generics/repos/community-staging-x86_64/PKGBUILD (from rev 785411, haskell-deepseq-generics/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-23 21:53:55 UTC (rev 785412)
@@ -0,0 +1,42 @@
+# 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=19
+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')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('403d5fd9d8bee827ec2434841d06e78520f6ff5709e4b8e1223d926e819cb99727162d7004f98bff795beaff1dc7d42d07534300c11d453ac559a743a4d70e7e')
+
+prepare() {
+ sed -i 's/base >= 4.5 && < 4.10/base >= 4.5/;s/< *0.6/<0.7/' $_hkgname-$pkgver/$_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
+ 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