# $Id: PKGBUILD 125278 2015-01-04 06:38:31Z td123 $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=gtk2hs-buildtools
pkgver=0.13.0.3
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')
options=('staticlibs')
makedepends=('ghc' 'alex' 'happy' 'haskell-random' 'haskell-hashtables')
depends=('gmp' 'libffi')
provides=('haskell-gtk2hs-buildtools')
source=("http://hackage.haskell.org/packages/archive/gtk2hs-buildtools/$pkgver/gtk2hs-buildtools-$pkgver.tar.gz")
md5sums=('d73f479d08ec7345a3942f780cc1d193')

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}
}
