Date: Friday, August 26, 2022 @ 18:12:53 Author: felixonmars Revision: 1283514
archrelease: copy trunk to community-staging-x86_64 Added: xmonad-contrib/repos/community-staging-x86_64/ xmonad-contrib/repos/community-staging-x86_64/PKGBUILD (from rev 1283513, xmonad-contrib/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: xmonad-contrib/repos/community-staging-x86_64/PKGBUILD (from rev 1283513, xmonad-contrib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-26 18:12:53 UTC (rev 1283514) @@ -0,0 +1,42 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Jelle van der Waa <je...@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Vesa Kaihlavirta <ve...@iki.fi> +# Contributor: orbisvicis <gmail.com> + +pkgname=xmonad-contrib +pkgver=0.17.0 +pkgrel=36 +pkgdesc='Community-maintained extensions extensions for xmonad' +url='https://xmonad.org/' +arch=('x86_64') +license=('BSD') +depends=('ghc-libs' 'xmonad' 'haskell-x11' 'haskell-x11-xft' 'haskell-utf8-string' 'haskell-random') +makedepends=('ghc' 'haskell-quickcheck' 'haskell-hspec') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/xmonad/xmonad-contrib/archive/v${pkgver}.tar.gz) +sha512sums=('1676d96acb6a7474457c44ee52bb792b23a233c897757ffdb0448a3bed16f71851e4d7f0c3d7bfd6ae48a4cc617fee5ceecea33260f454caf9189a0b785cca57') + +build() { + cd ${pkgname}-${pkgver} + runhaskell Setup.lhs configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr -fuse_xft --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests + 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 ${pkgname}-${pkgver} + runhaskell Setup test --show-details=direct +} + +package() { + cd ${pkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup.lhs copy --destdir="${pkgdir}" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +}