[arch-commits] Commit in haskell-gtk/repos (4 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 2 10:34:12 UTC 2016


    Date: Wednesday, November 2, 2016 @ 10:34:12
  Author: felixonmars
Revision: 194376

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-gtk/repos/community-staging-i686/
  haskell-gtk/repos/community-staging-i686/PKGBUILD
    (from rev 194375, haskell-gtk/trunk/PKGBUILD)
  haskell-gtk/repos/community-staging-x86_64/
  haskell-gtk/repos/community-staging-x86_64/PKGBUILD
    (from rev 194375, haskell-gtk/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: haskell-gtk/repos/community-staging-i686/PKGBUILD (from rev 194375, haskell-gtk/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-11-02 10:34:12 UTC (rev 194376)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-gtk
+pkgver=0.14.6
+pkgrel=1
+pkgdesc="Binding to the gtk library for Gtk2Hs."
+url="http://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')
+provides=('gtk2hs-gtk')
+replaces=('gtk2hs-gtk')
+conflicts=('gtk2hs-gtk')
+source=(http://hackage.haskell.org/package/gtk3-$pkgver/gtk3-$pkgver.tar.gz)
+md5sums=('b23b6ccb9e0c86920cd72fb6554e63fb')
+
+build() {
+  cd "$srcdir"/gtk3-${pkgver}
+  runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+    --prefix=/usr --docdir=/usr/share/doc/haskell-gtk \
+    --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
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+_update_deps() {
+    _ver=$(pacman -Q $1 | cut -f2 -d\  | cut -f1 -d-)
+    for i in $(seq 0 $(expr ${#depends[@]} - 1)); do
+        if [ ${depends[$i]} == $1 ]; then
+            depends[$i]="$1=${_ver}"
+        fi
+    done
+}
+
+package() {
+  _update_deps ghc
+  _update_deps haskell-mtl
+  _update_deps haskell-pango
+
+  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/haskell-gtk/html "$pkgdir"/usr/share/doc/ghc/html/libraries/gtk2hs-gtk
+  runhaskell Setup copy --destdir="$pkgdir"
+}

Copied: haskell-gtk/repos/community-staging-x86_64/PKGBUILD (from rev 194375, haskell-gtk/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-11-02 10:34:12 UTC (rev 194376)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-gtk
+pkgver=0.14.6
+pkgrel=1
+pkgdesc="Binding to the gtk library for Gtk2Hs."
+url="http://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')
+provides=('gtk2hs-gtk')
+replaces=('gtk2hs-gtk')
+conflicts=('gtk2hs-gtk')
+source=(http://hackage.haskell.org/package/gtk3-$pkgver/gtk3-$pkgver.tar.gz)
+md5sums=('b23b6ccb9e0c86920cd72fb6554e63fb')
+
+build() {
+  cd "$srcdir"/gtk3-${pkgver}
+  runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+    --prefix=/usr --docdir=/usr/share/doc/haskell-gtk \
+    --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
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+_update_deps() {
+    _ver=$(pacman -Q $1 | cut -f2 -d\  | cut -f1 -d-)
+    for i in $(seq 0 $(expr ${#depends[@]} - 1)); do
+        if [ ${depends[$i]} == $1 ]; then
+            depends[$i]="$1=${_ver}"
+        fi
+    done
+}
+
+package() {
+  _update_deps ghc
+  _update_deps haskell-mtl
+  _update_deps haskell-pango
+
+  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/haskell-gtk/html "$pkgdir"/usr/share/doc/ghc/html/libraries/gtk2hs-gtk
+  runhaskell Setup copy --destdir="$pkgdir"
+}



More information about the arch-commits mailing list