Date: Friday, November 18, 2022 @ 04:15:56 Author: felixonmars Revision: 1349437
archrelease: copy trunk to community-staging-x86_64 Added: haskell-gi/repos/community-staging-x86_64/ haskell-gi/repos/community-staging-x86_64/PKGBUILD (from rev 1349435, haskell-gi/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-gi/repos/community-staging-x86_64/PKGBUILD (from rev 1349435, haskell-gi/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-11-18 04:15:56 UTC (rev 1349437) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=haskell-gi +pkgname=haskell-gi +pkgver=0.26.2 +pkgrel=1 +pkgdesc="Generate Haskell bindings for GObject Introspection capable libraries" +url="https://github.com/haskell-gi/haskell-gi" +license=("LGPL2") +arch=('x86_64') +depends=('ghc-libs' 'glib2' 'gobject-introspection-runtime' 'haskell-gi-base' + 'haskell-ansi-terminal' 'haskell-attoparsec' 'haskell-pretty-show' 'haskell-safe' + 'haskell-xdg-basedir' 'haskell-xml-conduit' 'haskell-regex-tdfa') +makedepends=('ghc' 'gobject-introspection' 'haskell-cabal-doctest' 'haskell-doctest') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('afe062518af32e58d25dd554ec4748bfa42da883dff5f373006e9d15a17ae85a93c73ba2d82ee42a94421d33fb63d873c08cd89f5e8e7830656fc5fbe288e632') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test --show-details=direct +} + +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" + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}