Date: Monday, September 14, 2020 @ 18:55:27 Author: felixonmars Revision: 706295
archrelease: copy trunk to community-staging-x86_64 Added: haskell-glib/repos/community-staging-x86_64/ haskell-glib/repos/community-staging-x86_64/PKGBUILD (from rev 706294, haskell-glib/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-glib/repos/community-staging-x86_64/PKGBUILD (from rev 706294, haskell-glib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-09-14 18:55:27 UTC (rev 706295) @@ -0,0 +1,37 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> + +pkgname=haskell-glib +pkgver=0.13.8.1 +pkgrel=17 +pkgdesc="Binding to the GLIB library for Gtk2Hs." +url="https://hackage.haskell.org/package/glib" +license=('LGPL2.1') +arch=('x86_64') +depends=('ghc-libs' 'glib2' 'haskell-utf8-string') +makedepends=('ghc' "haskell-gtk2hs-buildtools") +provides=('gtk2hs-glib') +replaces=('gtk2hs-glib') +conflicts=('gtk2hs-glib') +source=(https://hackage.haskell.org/packages/archive/glib/$pkgver/glib-$pkgver.tar.gz) +sha512sums=('00558dc9dfbc507d7ac19ac4e1634317a41f465abf8b1bbb2594a96253eb4633b976aa9e1960af1260148f6a64d017acf535fef8b95789a058b762813940b5b7') + +build() { + cd "${srcdir}/glib-${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 $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}/glib-${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" +}