Date: Friday, January 3, 2020 @ 14:58:56 Author: felixonmars Revision: 547620
archrelease: copy trunk to community-staging-x86_64 Added: haskell-cairo/repos/community-staging-x86_64/ haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 547619, haskell-cairo/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 547619, haskell-cairo/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-01-03 14:58:56 UTC (rev 547620) @@ -0,0 +1,37 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> + +pkgname=haskell-cairo +pkgver=0.13.8.0 +pkgrel=6 +pkgdesc="Binding to the cairo library for Gtk2Hs." +url="https://hackage.haskell.org/package/cairo" +license=('LGPL2.1') +arch=('x86_64') +depends=('ghc-libs' 'cairo' 'haskell-utf8-string') +makedepends=("haskell-gtk2hs-buildtools" "mesa" 'ghc') +conflicts=('gtk2hs-cairo') +provides=('gtk2hs-cairo') +replaces=('gtk2hs-cairo') +source=("https://hackage.haskell.org/packages/archive/cairo/${pkgver}/cairo-${pkgver}.tar.gz") +sha512sums=('472cfae63dfe66c9bdb3b44918987f3b001a0f2d7749aa30276d1736da97b2c70e8731af88f3ab9e512fd12d631ab096d18fd4067f9fdac9ea3dd85ccc938c46') + +build() { + cd "${srcdir}/cairo-${pkgver}" + + 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 + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package() { + cd "${srcdir}/cairo-${pkgver}" + + install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh + install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh + runhaskell Setup copy --destdir="$pkgdir" +}