[arch-commits] Commit in haskell-gtk2hs-buildtools/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 17 06:11:13 UTC 2017
Date: Thursday, August 17, 2017 @ 06:11:13
Author: felixonmars
Revision: 251562
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-gtk2hs-buildtools/repos/community-staging-i686/
haskell-gtk2hs-buildtools/repos/community-staging-i686/PKGBUILD
(from rev 251561, haskell-gtk2hs-buildtools/trunk/PKGBUILD)
haskell-gtk2hs-buildtools/repos/community-staging-x86_64/
haskell-gtk2hs-buildtools/repos/community-staging-x86_64/PKGBUILD
(from rev 251561, haskell-gtk2hs-buildtools/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++
2 files changed, 104 insertions(+)
Copied: haskell-gtk2hs-buildtools/repos/community-staging-i686/PKGBUILD (from rev 251561, haskell-gtk2hs-buildtools/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-17 06:11:13 UTC (rev 251562)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-gtk2hs-buildtools
+pkgver=0.13.2.2
+pkgrel=9
+pkgdesc="Tools to build the Gtk2Hs suite of User Interface libraries."
+url="https://hackage.haskell.org/package/gtk2hs-buildtools"
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-random' 'haskell-hashtables')
+makedepends=('alex' 'happy' 'ghc')
+provides=('gtk2hs-buildtools')
+conflicts=('gtk2hs-buildtools')
+replaces=('gtk2hs-buildtools')
+source=("https://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
+md5sums=('53535536f2ddeb07e33013aea74b7c51')
+
+prepare() {
+ mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/tools gtk2hs-buildtools-$pkgver
+
+ cd gtk2hs-buildtools-$pkgver
+
+ sed -i 's/Cabal >= 1.24.0.0 && < 1.25,/Cabal >= 1.24.0.0,/' gtk2hs-buildtools.cabal
+ sed -e '/import Distribution.Simple.LocalBuildInfo/i import Distribution.Types.LocalBuildInfo as TLBI' \
+ -e 's/LBI.componentsConfigs/TLBI.componentsConfigs/' \
+ -i src/Gtk2HsSetup.hs
+}
+
+build() {
+ cd "${srcdir}/gtk2hs-buildtools-${pkgver}"
+
+ runhaskell Setup configure -O --enable-executable-dynamic --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$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}/gtk2hs-buildtools-${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-gtk2hs-buildtools/repos/community-staging-x86_64/PKGBUILD (from rev 251561, haskell-gtk2hs-buildtools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-17 06:11:13 UTC (rev 251562)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-gtk2hs-buildtools
+pkgver=0.13.2.2
+pkgrel=9
+pkgdesc="Tools to build the Gtk2Hs suite of User Interface libraries."
+url="https://hackage.haskell.org/package/gtk2hs-buildtools"
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-random' 'haskell-hashtables')
+makedepends=('alex' 'happy' 'ghc')
+provides=('gtk2hs-buildtools')
+conflicts=('gtk2hs-buildtools')
+replaces=('gtk2hs-buildtools')
+source=("https://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
+md5sums=('53535536f2ddeb07e33013aea74b7c51')
+
+prepare() {
+ mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/tools gtk2hs-buildtools-$pkgver
+
+ cd gtk2hs-buildtools-$pkgver
+
+ sed -i 's/Cabal >= 1.24.0.0 && < 1.25,/Cabal >= 1.24.0.0,/' gtk2hs-buildtools.cabal
+ sed -e '/import Distribution.Simple.LocalBuildInfo/i import Distribution.Types.LocalBuildInfo as TLBI' \
+ -e 's/LBI.componentsConfigs/TLBI.componentsConfigs/' \
+ -i src/Gtk2HsSetup.hs
+}
+
+build() {
+ cd "${srcdir}/gtk2hs-buildtools-${pkgver}"
+
+ runhaskell Setup configure -O --enable-executable-dynamic --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$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}/gtk2hs-buildtools-${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