Date: Sunday, February 3, 2019 @ 15:25:31 Author: felixonmars Revision: 429481
archrelease: copy trunk to community-staging-x86_64 Added: haskell-pango/repos/community-staging-x86_64/ haskell-pango/repos/community-staging-x86_64/PKGBUILD (from rev 429480, haskell-pango/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: haskell-pango/repos/community-staging-x86_64/PKGBUILD (from rev 429480, haskell-pango/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-02-03 15:25:31 UTC (rev 429481) @@ -0,0 +1,38 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> + +_hkgname=pango +pkgname=haskell-pango +pkgver=0.13.5.0 +pkgrel=14 +pkgdesc="Binding to the pango library for Gtk2Hs." +url="https://hackage.haskell.org/package/pango" +license=('LGPL2.1') +arch=('x86_64') +depends=('ghc-libs' 'pango' 'haskell-glib' 'haskell-cairo') +makedepends=('ghc' "haskell-gtk2hs-buildtools" "mesa") +provides=('gtk2hs-pango') +replaces=('gtk2hs-pango') +conflicts=('gtk2hs-pango') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('d1d6e61118f193d0849e44a2f589391e36f9e6bc80cbf45071d01384e12f600158cad11a49b194388baa1c8c8941a16f8b147a67982016bd9b95035a5f108827') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$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 $_hkgname-$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" +}