Date: Wednesday, December 23, 2020 @ 07:23:54 Author: felixonmars Revision: 783859
archrelease: copy trunk to community-staging-x86_64 Added: haskell-xcffib/repos/community-staging-x86_64/ haskell-xcffib/repos/community-staging-x86_64/PKGBUILD (from rev 783858, haskell-xcffib/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: haskell-xcffib/repos/community-staging-x86_64/PKGBUILD (from rev 783858, haskell-xcffib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-12-23 07:23:54 UTC (rev 783859) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=xcffib +pkgname=haskell-xcffib +pkgver=0.11.0 +pkgrel=4 +pkgdesc="A cffi-based python binding for X" +url="https://github.com/tych0/xcffib" +license=('Apache') +arch=('x86_64') +depends=('ghc-libs' 'haskell-attoparsec' 'haskell-either' 'haskell-filemanip' 'haskell-language-python' + 'haskell-optparse-applicative' 'haskell-split' 'haskell-xcb-types') +makedepends=('ghc' 'uusi') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('fab8bbe8b184fd8a5269b63bab81078a1b67fd781be1df74908f2e5037d5240f72732a79d31b4b1c97b6d9410302955c71b584d73874094911d27ff185e5d3e2') + +prepare() { + cd $_hkgname-$pkgver + gen-setup +} + +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 $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 $_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" + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}