Date: Wednesday, June 16, 2021 @ 23:38:18 Author: felixonmars Revision: 964400
archrelease: copy trunk to community-staging-x86_64 Added: haskell-gi-base/repos/community-staging-x86_64/ haskell-gi-base/repos/community-staging-x86_64/PKGBUILD (from rev 964399, haskell-gi-base/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-gi-base/repos/community-staging-x86_64/PKGBUILD (from rev 964399, haskell-gi-base/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-06-16 23:38:18 UTC (rev 964400) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=haskell-gi-base +pkgname=haskell-gi-base +pkgver=0.25.0 +pkgrel=3 +pkgdesc="Foundation for libraries generated by haskell-gi" +url="https://github.com/haskell-suite/haskell-gi" +license=("LGPL2") +arch=('x86_64') +depends=('ghc-libs' 'glib2') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('fdc47a86999f6eadf2a3fc21bc298f530430b2a7bd80d252577a4650adf57ece45d8465d323a8bbebf24f3621a9c6ea04aa47f97220f626c532967972ca54870') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --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 +} + +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 +}