[arch-commits] Commit in haskell-pango/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Tue Oct 24 09:48:34 UTC 2017


    Date: Tuesday, October 24, 2017 @ 09:48:30
  Author: spupykin
Revision: 264095

upgpkg: haskell-pango 0.13.4.0-1

Modified:
  haskell-pango/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-24 09:42:52 UTC (rev 264094)
+++ PKGBUILD	2017-10-24 09:48:30 UTC (rev 264095)
@@ -1,9 +1,10 @@
 # $Id$
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 
+_hkgname=pango
 pkgname=haskell-pango
-pkgver=0.13.3.1
-pkgrel=5
+pkgver=0.13.4.0
+pkgrel=1
 pkgdesc="Binding to the pango library for Gtk2Hs."
 url="https://hackage.haskell.org/package/pango"
 license=('LGPL2.1')
@@ -13,20 +14,15 @@
 provides=('gtk2hs-pango')
 replaces=('gtk2hs-pango')
 conflicts=('gtk2hs-pango')
-source=("https://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
-sha512sums=('610a080ddf8ad8511176a7fd5ed5457aa26b5ce48539b7eb46563d86db1ffab6501f8b4deac4152f7d9cea84093de34e1bd1bb9467f558f1c202026337e1c708')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('3edc7ca5ef81444ea9559d33a95b3ef6a38118ac614c6e69dd9babf11e69ce1a44a69f1c13ffd5ebe4bb0a98520c909d89517a9eb4b94c77a5f9d75f579d8789')
 
-prepare() {
-    mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/pango pango-$pkgver
-}
-
 build() {
-    cd "${srcdir}/pango-${pkgver}"
-
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+        --prefix=/usr --docdir="/usr/share/doc/${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
@@ -35,8 +31,8 @@
 }
 
 package() {
-    cd "${srcdir}/pango-${pkgver}"
-
+    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