diff --git a/PKGBUILD b/PKGBUILD index 3f0f7c6..3231264 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,12 +10,15 @@ license=('LGPL-2.1') arch=('i686' 'x86_64') depends=("ghc-libs" 'haskell-gi-base' 'haskell-base' 'haskell-bytestring' 'haskell-containers' 'haskell-gi' 'haskell-gi-overloading' 'haskell-text' 'haskell-transformers' 'haskell-gi-xlib' 'haskell-gi-gdk') makedepends=('ghc') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha256sums=('4cc93329af472ba46572784e1d6b9a5ac25c237381a0462a14db5c6390cf7168') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz" + cairo.patch) +sha256sums=('4cc93329af472ba46572784e1d6b9a5ac25c237381a0462a14db5c6390cf7168' + 'f842885b03f6d08655fbe1dbc961f64e539864885513b727e8120842963224df') build() { cd "${srcdir}/${_hkgname}-${pkgver}" + cat "${srcdir}/cairo.patch" | patch -p1 runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid diff --git a/cairo.patch b/cairo.patch new file mode 100644 index 0000000..7f59301 --- /dev/null +++ b/cairo.patch @@ -0,0 +1,10 @@ +--- a/gi-gdkx11.cabal ++++ b/gi-gdkx11.cabal +@@ -29,6 +29,7 @@ library + haskell-gi-base == 0.21.*, + haskell-gi == 0.21.*, + haskell-gi-overloading < 1.1, ++ gi-cairo == 1.0.*, + gi-gobject == 2.0.*, + gi-gdk == 3.0.*, + gi-gio == 2.0.*,