5 # PKGBUILD options/directives
9 pkgdesc="Binding to the Gtk+ graphical user interface library."
10 url="http://projects.haskell.org/gtk2hs/"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
16 "haskell-array=0.3.0.2"
17 "haskell-bytestring=0.9.1.10"
18 "haskell-cairo=0.12.1"
19 "haskell-containers=0.4.0.0"
23 "haskell-pango=0.12.1"
28 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
29 install="${pkgname}.install"
30 sha256sums=("5b27295a98f07eb0e5963bfafb81bd38de87e1795d7a44d0886e45e15ceffc00")
34 cd ${srcdir}/${_hkgname}-${pkgver}
36 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
37 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
38 --libsubdir=\$compiler/site-local/\$pkgid
39 runhaskell Setup build
40 runhaskell Setup haddock
41 runhaskell Setup register --gen-script
42 runhaskell Setup unregister --gen-script
43 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
47 cd ${srcdir}/${_hkgname}-${pkgver}
48 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
49 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
50 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
51 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
52 runhaskell Setup copy --destdir=${pkgdir}
53 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
54 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}