[arch-commits] Commit in haskell-pango/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 17 17:56:41 UTC 2017
Date: Thursday, August 17, 2017 @ 17:56:40
Author: felixonmars
Revision: 251740
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-pango/repos/community-staging-i686/
haskell-pango/repos/community-staging-i686/PKGBUILD
(from rev 251739, haskell-pango/trunk/PKGBUILD)
haskell-pango/repos/community-staging-x86_64/
haskell-pango/repos/community-staging-x86_64/PKGBUILD
(from rev 251739, haskell-pango/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
Copied: haskell-pango/repos/community-staging-i686/PKGBUILD (from rev 251739, haskell-pango/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-17 17:56:40 UTC (rev 251740)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-pango
+pkgver=0.13.3.1
+pkgrel=4
+pkgdesc="Binding to the pango library for Gtk2Hs."
+url="https://hackage.haskell.org/package/pango"
+license=('LGPL2.1')
+arch=('i686' '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://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
+sha256sums=('1de00973cf66154605411892c77b232b0066c98ab2d562595ded3d9d95c4c547')
+
+prepare() {
+ mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/pango pango-$pkgver
+}
+
+build() {
+ cd "${srcdir}/pango-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ sed -i 's|import Foreign.C.Types.*(CULong, CUInt)|import Foreign.C.Types (CULong(..), CUInt(..))|' Graphics/Rendering/Pango/Types.chs
+ 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}/pango-${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}"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-pango/repos/community-staging-x86_64/PKGBUILD (from rev 251739, haskell-pango/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-17 17:56:40 UTC (rev 251740)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-pango
+pkgver=0.13.3.1
+pkgrel=4
+pkgdesc="Binding to the pango library for Gtk2Hs."
+url="https://hackage.haskell.org/package/pango"
+license=('LGPL2.1')
+arch=('i686' '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://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
+sha256sums=('1de00973cf66154605411892c77b232b0066c98ab2d562595ded3d9d95c4c547')
+
+prepare() {
+ mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/pango pango-$pkgver
+}
+
+build() {
+ cd "${srcdir}/pango-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ sed -i 's|import Foreign.C.Types.*(CULong, CUInt)|import Foreign.C.Types (CULong(..), CUInt(..))|' Graphics/Rendering/Pango/Types.chs
+ 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}/pango-${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}"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list