[arch-commits] Commit in haskell-erf/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 17 14:25:05 UTC 2018
Date: Thursday, May 17, 2018 @ 14:25:04
Author: felixonmars
Revision: 323824
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-erf/repos/community-staging-x86_64/
haskell-erf/repos/community-staging-x86_64/PKGBUILD
(from rev 323823, haskell-erf/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-erf/repos/community-staging-x86_64/PKGBUILD (from rev 323823, haskell-erf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-17 14:25:04 UTC (rev 323824)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=erf
+pkgname=haskell-erf
+pkgver=2.0.0.0
+pkgrel=7
+pkgdesc="The error function, erf, and related functions."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0803d78cbb4324c06174ec2162fb8408120acd7c644889fef51089de51c8165b075c6ea72d039e438ebf54ac5b8a0c0d6484077454e524fc1184cf82b778a0b1')
+
+build() {
+ cd "${srcdir}/${_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
+ 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 "${srcdir}/${_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}"
+}
More information about the arch-commits
mailing list