From 1f567a9d58d16b76320168f0624aa55bd6320284 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Feb 2012 23:15:24 +0000 Subject: Mon Feb 27 23:15:24 UTC 2012 --- community-staging/gtk2hs-buildtools/PKGBUILD | 27 +++++++++++++ community-staging/haskell-bytestring-show/PKGBUILD | 44 ++++++++++++++++++++++ .../haskell-bytestring-show.install | 24 ++++++++++++ community-staging/haskell-hslogger/PKGBUILD | 40 ++++++++++++++++++++ .../haskell-hslogger/haskell-hslogger.install | 18 +++++++++ community-staging/haskell-terminfo/PKGBUILD | 39 +++++++++++++++++++ .../haskell-terminfo/haskell-terminfo.install | 18 +++++++++ community-staging/xmobar/PKGBUILD | 31 +++++++++++++++ 8 files changed, 241 insertions(+) create mode 100644 community-staging/gtk2hs-buildtools/PKGBUILD create mode 100644 community-staging/haskell-bytestring-show/PKGBUILD create mode 100644 community-staging/haskell-bytestring-show/haskell-bytestring-show.install create mode 100644 community-staging/haskell-hslogger/PKGBUILD create mode 100644 community-staging/haskell-hslogger/haskell-hslogger.install create mode 100644 community-staging/haskell-terminfo/PKGBUILD create mode 100644 community-staging/haskell-terminfo/haskell-terminfo.install create mode 100644 community-staging/xmobar/PKGBUILD (limited to 'community-staging') diff --git a/community-staging/gtk2hs-buildtools/PKGBUILD b/community-staging/gtk2hs-buildtools/PKGBUILD new file mode 100644 index 000000000..29a38e357 --- /dev/null +++ b/community-staging/gtk2hs-buildtools/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 66665 2012-02-27 02:28:35Z spupykin $ +# Maintainer: Sergej Pupykin + +pkgname=gtk2hs-buildtools +pkgver=0.12.1 +pkgrel=2 +pkgdesc="Tools to build the Gtk2Hs suite of User Interface libraries." +url="http://hackage.haskell.org/package/gtk2hs-buildtools" +license=('GPL2') +arch=('i686' 'x86_64') +makedepends=('ghc' 'alex' 'happy' 'haskell-random') +depends=('gmp') +options=('strip') +provides=('haskell-gtk2hs-buildtools') +source=(http://hackage.haskell.org/packages/archive/gtk2hs-buildtools/$pkgver/gtk2hs-buildtools-$pkgver.tar.gz) +md5sums=('225cbf3736b5ac3053f8c797687c7554') + +build() { + cd ${srcdir}/gtk2hs-buildtools-$pkgver + runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} + runhaskell Setup build +} + +package() { + cd ${srcdir}/gtk2hs-buildtools-$pkgver + runhaskell Setup copy --destdir=${pkgdir} +} diff --git a/community-staging/haskell-bytestring-show/PKGBUILD b/community-staging/haskell-bytestring-show/PKGBUILD new file mode 100644 index 000000000..1ec12046c --- /dev/null +++ b/community-staging/haskell-bytestring-show/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 66669 2012-02-27 02:56:01Z spupykin $ +# Maintainer: Sergej Pupykin + +pkgname=haskell-bytestring-show +pkgver=0.3.5.1 +pkgrel=1 +pkgdesc="Efficient conversion of values into readable byte strings." +url="http://code.haskell.org/~dolio/" +license=("BSD3") +arch=('i686' 'x86_64') +makedepends=() +depends=("ghc" + "haskell-array" + "haskell-binary" + "haskell-bytestring" + "haskell-containers") +options=('strip') +install="${pkgname}.install" +source=("http://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz") +md5sums=('7396bc2e8f88dedc3374c3f12f24e4bd') + +build() { + cd ${srcdir}/bytestring-show-${pkgver} + + runhaskell Setup configure -O -p --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + cd ${srcdir}/bytestring-show-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.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/bytestring-show + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/community-staging/haskell-bytestring-show/haskell-bytestring-show.install b/community-staging/haskell-bytestring-show/haskell-bytestring-show.install new file mode 100644 index 000000000..335fc37cd --- /dev/null +++ b/community-staging/haskell-bytestring-show/haskell-bytestring-show.install @@ -0,0 +1,24 @@ +pkgname=haskell-bytestring-show +HS_DIR=usr/share/haskell/${pkgname} + +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + +pre_upgrade() { + ${HS_DIR}/unregister.sh +} + +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + +pre_remove() { + ${HS_DIR}/unregister.sh +} + +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} diff --git a/community-staging/haskell-hslogger/PKGBUILD b/community-staging/haskell-hslogger/PKGBUILD new file mode 100644 index 000000000..a28697842 --- /dev/null +++ b/community-staging/haskell-hslogger/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 66671 2012-02-27 02:56:41Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: Arch Haskell Team + +pkgname=haskell-hslogger +pkgver=1.1.5 +pkgrel=3 +pkgdesc="Versatile logging framework" +url="http://hackage.haskell.org/package/hslogger" +license=('LGPL') +arch=('i686' 'x86_64') +depends=('ghc' 'haskell-mtl' 'haskell-network') +options=('strip') +install=${pkgname}.install +source=(http://hackage.haskell.org/packages/archive/hslogger/${pkgver}/hslogger-${pkgver}.tar.gz) +md5sums=('cd3dfd6f88176bd53b333ea29130a857') + +build() { + cd ${srcdir}/hslogger-${pkgver} + runhaskell Setup configure -p --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O \ + --enable-split-objs --enable-shared --libsubdir=\$compiler/site-local/\$pkgid \ + --enable-library-profiling + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + _ghcver=`pacman -Q ghc | cut -f2 -d\ | cut -f1 -d-` + depends=("ghc=${_ghcver}" 'haskell-mtl=2.0.1.0' 'haskell-network=2.3.0.2') + + cd ${srcdir}/hslogger-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.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/hslogger + runhaskell Setup copy --destdir=${pkgdir} +} diff --git a/community-staging/haskell-hslogger/haskell-hslogger.install b/community-staging/haskell-hslogger/haskell-hslogger.install new file mode 100644 index 000000000..2a0d98ae7 --- /dev/null +++ b/community-staging/haskell-hslogger/haskell-hslogger.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-hslogger +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} diff --git a/community-staging/haskell-terminfo/PKGBUILD b/community-staging/haskell-terminfo/PKGBUILD new file mode 100644 index 000000000..a0bd2d3dc --- /dev/null +++ b/community-staging/haskell-terminfo/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 66654 2012-02-26 22:15:49Z tdziedzic $ +# Maintainer: Vesa Kaihlavirta +# Contributor: Arch Haskell Team + +_hkgname=terminfo +pkgname=haskell-terminfo +pkgver=0.3.2.3 +pkgrel=1 +pkgdesc="Haskell bindings to the terminfo library." +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('ghc=7.4.1-2' 'sh') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('706f546c629ac100a402c9c2629c25fa') + +build() { + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O -p --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + cd ${srcdir}/${_hkgname}-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.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/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/community-staging/haskell-terminfo/haskell-terminfo.install b/community-staging/haskell-terminfo/haskell-terminfo.install new file mode 100644 index 000000000..40d39f42b --- /dev/null +++ b/community-staging/haskell-terminfo/haskell-terminfo.install @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-terminfo +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} diff --git a/community-staging/xmobar/PKGBUILD b/community-staging/xmobar/PKGBUILD new file mode 100644 index 000000000..ebe3e2563 --- /dev/null +++ b/community-staging/xmobar/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 66667 2012-02-27 02:46:19Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: Arch Haskell Team +# Package generated by cabal2arch 0.4 + +pkgname=xmobar +pkgver=0.14 +pkgrel=2 +pkgdesc="A Minimalistic Text Based Status Bar" +url="http://hackage.haskell.org/package/xmobar" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=('gmp' 'libxft' 'libxinerama' 'wireless_tools' 'libxrandr') +makedepends=('ghc>=7.0.2' 'haskell-x11>=1.3.0' 'haskell-x11-xft>=0.2' 'haskell-utf8-string' + 'haskell-stm' 'haskell-parsec>=3' 'haskell-mtl>=2') +options=('strip') +source=(http://hackage.haskell.org/packages/archive/xmobar/$pkgver/xmobar-$pkgver.tar.gz) +md5sums=('b965e2db0555c741db96945210995777') + +build() { + cd ${srcdir}/xmobar-$pkgver +# runhaskell Setup configure --disable-optimization --prefix=/usr --flags="with_xft with_alsa with_inotify with_iwlib" + runhaskell Setup configure --disable-optimization --prefix=/usr --flags="with_xft with_iwlib" + runhaskell Setup build +} + +package() { + cd ${srcdir}/xmobar-$pkgver + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE +} -- cgit v1.2.3-54-g00ecf