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

Felix Yan felixonmars at archlinux.org
Wed Sep 5 21:47:10 UTC 2018


    Date: Wednesday, September 5, 2018 @ 21:47:10
  Author: felixonmars
Revision: 377062

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-data-accessor/repos/community-staging-x86_64/PKGBUILD (from rev 377061, haskell-data-accessor/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-09-05 21:47:10 UTC (rev 377062)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=data-accessor
+pkgname=haskell-data-accessor
+pkgver=0.2.2.8
+pkgrel=1
+pkgdesc="Utilities for accessing and manipulating fields of records"
+url="http://www.haskell.org/haskellwiki/Record_access"
+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=('39a61db66952464cc7a010d0fbead9ec7bf327fcb9897747eb6033fb983c803d3d364f52c67b843ef5bee36c301504c2e6ec776121a2d284ae93048f1dabfb92')
+
+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 \
+            -fsplitbase -fcategory
+    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