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

Felix Yan felixonmars at archlinux.org
Thu Dec 28 17:07:26 UTC 2017


    Date: Thursday, December 28, 2017 @ 17:07:25
  Author: felixonmars
Revision: 276581

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-pango/repos/community-staging-x86_64/PKGBUILD (from rev 276580, haskell-pango/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-28 17:07:25 UTC (rev 276581)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+_hkgname=pango
+pkgname=haskell-pango
+pkgver=0.13.4.0
+pkgrel=6
+pkgdesc="Binding to the pango library for Gtk2Hs."
+url="https://hackage.haskell.org/package/pango"
+license=('LGPL2.1')
+arch=('x86_64')
+depends=('ghc-libs' 'pango' 'haskell-glib' 'haskell-cairo')
+makedepends=('ghc' "haskell-gtk2hs-buildtools" "mesa")
+provides=('gtk2hs-pango')
+replaces=('gtk2hs-pango')
+conflicts=('gtk2hs-pango')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('3edc7ca5ef81444ea9559d33a95b3ef6a38118ac614c6e69dd9babf11e69ce1a44a69f1c13ffd5ebe4bb0a98520c909d89517a9eb4b94c77a5f9d75f579d8789')
+
+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