summaryrefslogtreecommitdiff
path: root/community-testing/gtk2hs-buildtools/PKGBUILD
blob: ada8cb54f30cb4697d94290321b109b167559ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 77006 2012-10-03 15:23:27Z tdziedzic $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=gtk2hs-buildtools
pkgver=0.12.3.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=7.6.1-1' 'alex=3.0.2-2' 'happy=1.18.9-6' 'haskell-random=1.0.1.1-3')
depends=('gmp')
options=('strip')
provides=('haskell-gtk2hs-buildtools')
source=(http://hackage.haskell.org/packages/archive/gtk2hs-buildtools/$pkgver/gtk2hs-buildtools-$pkgver.tar.gz
        '0001-fix-for-ghc-7.6.1-changes.patch')
md5sums=('612611d831635024c953d2817b124e29'
         'b6551d8085c97bc2c6600ab397833101')

build() {
    cd ${srcdir}/gtk2hs-buildtools-$pkgver

    patch -Np1 -i ${srcdir}/0001-fix-for-ghc-7.6.1-changes.patch

    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname}
    runhaskell Setup build
}

package() {
    cd ${srcdir}/gtk2hs-buildtools-$pkgver
    runhaskell Setup copy --destdir=${pkgdir}
}