/
gtk.pkgbuild
28 lines (28 loc) · 1.18 KB
/
gtk.pkgbuild
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
Index: archhaskell/haskell-gtk/PKGBUILD
===================================================================
--- archhaskell.orig/haskell-gtk/PKGBUILD
+++ archhaskell/haskell-gtk/PKGBUILD
@@ -10,12 +10,13 @@ pkgdesc="Binding to the Gtk+ graphical u
url="http://projects.haskell.org/gtk2hs/"
license=("LGPL-2.1")
arch=('i686' 'x86_64')
-makedepends=()
+makedepends=("gtk2hs-buildtools")
depends=("ghc=7.6.1-1"
"haskell-cairo=0.12.4-1"
"haskell-glib=0.12.4-1"
"haskell-mtl=2.1.2-25"
- "haskell-pango=0.12.4-1")
+ "haskell-pango=0.12.4-1"
+ "gtk2")
options=('strip')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install="${pkgname}.install"
@@ -29,6 +30,7 @@ build() {
runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
--prefix=/usr --docdir=/usr/share/doc/${pkgname} \
--libsubdir=\$compiler/site-local/\$pkgid
+ sed -i 's|import Foreign.C.Types.*(CULong, CUInt)|import Foreign.C.Types (CULong(..), CUInt(..))|' Graphics/UI/Gtk/Types.chs
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script