Date: Monday, February 1, 2021 @ 00:53:39 Author: felixonmars Revision: 839032
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 839031, haskell-cairo/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-cairo/repos/community-staging-x86_64/PKGBUILD (from rev 839031, haskell-cairo/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-02-01 00:53:39 UTC (rev 839032) @@ -0,0 +1,37 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> + +pkgname=haskell-cairo +pkgver=0.13.8.1 +pkgrel=57 +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=('9c4ec738fe6e335f635c3fa47a26edb9264ec5a9713ff8c0109f2cf321e21331009402d3715321b63f5423e32ad90a0dd3ca9ca83544d554be5463c9784ab727') + +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 $MAKEFLAGS + 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" +}