summaryrefslogtreecommitdiff
path: root/community-testing/gtk2hs-buildtools/PKGBUILD
blob: 0eebe26919b2430ac4bec9110935cf1e916701f9 (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
# $Id: PKGBUILD 50208 2011-06-26 20:13:31Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=gtk2hs-buildtools
pkgver=0.12.0
pkgrel=3
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')
depends=('gmp')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/gtk2hs-buildtools/$pkgver/gtk2hs-buildtools-$pkgver.tar.gz)
md5sums=('cbcdfd6031725d8b70ff7804f8d93648')

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