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

Felix Yan felixonmars at archlinux.org
Sun Oct 14 14:44:11 UTC 2018


    Date: Sunday, October 14, 2018 @ 14:44:11
  Author: felixonmars
Revision: 393607

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-fgl/repos/community-staging-x86_64/
  haskell-fgl/repos/community-staging-x86_64/PKGBUILD
    (from rev 393606, haskell-fgl/trunk/PKGBUILD)

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

Copied: haskell-fgl/repos/community-staging-x86_64/PKGBUILD (from rev 393606, haskell-fgl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-10-14 14:44:11 UTC (rev 393607)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=fgl
+pkgname=haskell-fgl
+pkgver=5.6.0.0
+pkgrel=3
+pkgdesc="Martin Erwig's Functional Graph Library"
+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"
+        https://patch-diff.githubusercontent.com/raw/haskell/fgl/pull/80.patch)
+sha512sums=('0da15994f95d86dd27a6678eb762afb72d87b28176f82505691b5e5215e2c73edfe7ed2f36021254a02a749d5f39f23bf68a8957900fb335e651be5b68ec11f2'
+            'b9adfd74bc6b48311b1ac34e6f71948962fc87b123ad18028325750ea67a72f2648e119e7b45a6d15377b6258e4d443881910768021ccc795fa77b1841b5f556')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -p1 -i ../80.patch || :
+}
+
+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 \
+            -fcontainers042
+    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}"
+    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