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

Felix Yan felixonmars at archlinux.org
Thu Aug 17 18:10:28 UTC 2017


    Date: Thursday, August 17, 2017 @ 18:10:28
  Author: felixonmars
Revision: 251741

upgpkg: haskell-gtk 0.14.6-4

GHC 8.2.1 rebuild

Modified:
  haskell-gtk/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-17 17:56:40 UTC (rev 251740)
+++ PKGBUILD	2017-08-17 18:10:28 UTC (rev 251741)
@@ -3,27 +3,30 @@
 
 pkgname=haskell-gtk
 pkgver=0.14.6
-pkgrel=3
+pkgrel=4
 pkgdesc="Binding to the gtk library for Gtk2Hs."
 url="https://hackage.haskell.org/package/gtk3"
 license=('LGPL2.1')
 arch=('i686' 'x86_64')
-depends=('ghc' 'gtk3' "haskell-pango" 'haskell-mtl' 'haskell-text')
-makedepends=('haskell-gtk2hs-buildtools')
+depends=('ghc-libs' 'gtk3' "haskell-pango" 'haskell-mtl' 'haskell-text')
+makedepends=('ghc' 'haskell-gtk2hs-buildtools')
 provides=('gtk2hs-gtk')
 replaces=('gtk2hs-gtk')
 conflicts=('gtk2hs-gtk')
-source=(https://hackage.haskell.org/package/gtk3-$pkgver/gtk3-$pkgver.tar.gz)
-sha256sums=('f4c0d3c51a5e06e5f6a8fcfc2a1303e0a3ed0242309fc6c1b9603be9de1f4258')
+source=("https://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
+sha256sums=('1de00973cf66154605411892c77b232b0066c98ab2d562595ded3d9d95c4c547')
 
+prepare() {
+    mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/gtk gtk3-$pkgver
+}
+
 build() {
     cd "${srcdir}/gtk3-${pkgver}"
-    
+
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
-        --libsubdir=\$compiler/site-local/\$pkgid
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
-    runhaskell Setup haddock --hoogle --html
     runhaskell Setup register --gen-script
     runhaskell Setup unregister --gen-script
     sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
@@ -32,11 +35,9 @@
 
 package() {
     cd "${srcdir}/gtk3-${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"
-    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
-    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/gtk3"
     runhaskell Setup copy --destdir="${pkgdir}"
 
     # Remove static libs



More information about the arch-commits mailing list